Im not sure whats wrong with this one.
Why dont you try extending using AbstractUser It has worked for me.
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Why dont you try extending using AbstractUser It has worked for me.
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
On Thu, Aug 18, 2022 at 8:48 PM Wazed Khan <wazedkhan119399@gmail.com> wrote:
Hi--I have created an online store project where every product has a user who is the seller.
I wanted to access seller info from the product using reverse relation "product.user.sellar"
but it returns appname.Model.None
here is my usermodel and sellar model(there is a spelling mistake seller is sellar)Please help me I'm kind of stuck with the problem for two days
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALWCTKgFieA0u%3DyT_EhvT0Z4RA_Umvtzw7FGztSpZ6ocySTPpQ%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjt4t%2BikEjeAZ7%3D-MKf-jVPGqRhcRbm-LRU6KN-HDAwO4w%40mail.gmail.com.
No comments:
Post a Comment