Комментарии:
Can I do this If I am using AbstractUser?
ОтветитьSo wonderful bro
Ответитьthis really helped thank a lot
Ответитьwhy have two methods? Couldn't the save method be called before the create method? and why save the user and not the profile?
ОтветитьUSE THIS IN YOUR PROFILE MODULE:
def __str__(self):
return f'{self.user.username} Profile'
this code save profile with the name of user profile example : object profile(1) saves with admin profile
really thanks sir! i learing a lot!
Ответитьhi there, i seem to get the error: OperationalError at /admin/login/
no such table: userprofile_profile after trying to login using superuser. what could have been wrong?
How i can contact you its important
ОтветитьIf i have a custom user model i have to create a field for the user model to hold the relationship? i have han error: instance.profile.save()
AttributeError: 'UserAccount' object has no attribute 'profile'
ty for your time
great!
ОтветитьHello sir.. watched Ur playlist and got the contents I was searching for.. Really you did a great job making these videos which are very much useful...but I had a doubt on the admin page we can see the "Django administration " I wanted to ask is can we change the name Django administration to some other name and if we can then can you please tell how it is possible..plzz do reply..
Ответитьafter created user, I cannot see profile right away.
ОтветитьHello friend, your videos have been very helpful to me. I have a problem with a code when creating a model, can you help me?
Ответить