loading...

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

highcenburg profile image Vicente G. Reyes Updated on ・1 min read

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',

Discussion

pic
Editor guide
Collapse
highcenburg profile image
Vicente G. Reyes Author

Solved:

Added @login_required on home_view