Answer the question
In order to leave comments, you need to log in
How to solve errors while extending the User model?
I tried to extend the User model according to my needs.
Model
class MyUser(AbstractUser):
height = models.IntegerField(verbose_name=u'Рост', blank=True)
AUTH_USER_MODEL = 'base.MyUser'
user = models.ForeignKey(settings.AUTH_USER_MODEL)
ValueError: Lookup failed for model referenced by field base.BodySize.user: base.MyUser
django.db.utils.ProgrammingError: (1146, “Table 'cachalka.base_myuser_user_permissions' doesn't exist”)
“Table 'c_test.django_session' doesn't exist”.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question