How to change the USER model?
Good time of day.
I need to modify the standard model user in Django-Oscar. From what I've read, there is not so simple, not lzya just unasledovala from the native model and forward. Tell me how to add new fields to the model?
I would be very grateful for your help.
July 9th 19 at 13:08
More answers about
"How to change the USER model?"
July 9th 19 at 13:10
Nasledujuca from AbstractBaseUser
Not always third-party modules will use the user settings. They can use django.contrib.auth.models.User directly have a problem.
commented on July 9th 19 at 13:13
: if a third-party module has not been updated in two years, it is not necessary to use it
commented on July 9th 19 at 13:16
July 9th 19 at 13:12
from django.contrib.auth.models import User
user = models.OneToOneField(User)
To access the profile will be like this: my_user.userprofile
so do not write
and for a long time
commented on July 9th 19 at 13:15
to write your answer or comment.
Find more questions by tags