DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on • Edited on

SOLVED:'AnonymousUser' object has no attribute 'profile'

Can someone help me? I've been going around and around with questions here on SO but can't get the answer.

I'm getting 'User' object has no attribute 'profile'

Here's my user model

class Profile(models.Model):

    NARRATESTATUS = (
        ('PAS', 'Passed'),
        ('REV', 'For_Review'),
        ('ACC', 'Narration_Accepted'),
    )

    TRANSLATESTATUS = (
        ('PSD', 'Passed'),
        ('RVW',

Top comments (1)

Collapse
 
highcenburg profile image
Vicente G. Reyes

Solved:

Added @login_required on home_view