1👍
✅
I think it could be the lack of reference to the User model. Let’s say your Profile model looks like this:
class Profile(models.Model):
user = models.ForeignKey(User)
The model User will have a profile_set
attribute and not profile
. To adjust this use the related_name:
class Profile(models.Model):
user = models.OneToOneField(User, related_name='profile')
Source:stackexchange.com