Use the relationship in this way
Product -> Seller-> User
Instead Product -> User -> Seller
On Wed, Aug 24, 2022, 7:18 PM MAHESH KUMAR <maheshkumartambala@gmail.com> wrote:
1. User Authentication APIs:
1. get or create user by phone number, params: "phone_no", response {"user_id","auth_token"},
2. get or create user by email, params: "email", response {"user_id","auth_token"},how to write this i was try but i didn't get plz help sir--On Friday, August 19, 2022 at 4:59:56 AM UTC+5:30 subtitle indo wrote:I will ok forward to meeting you on February 15.On Thu, Aug 18, 2022 at 4:18 PM Wazed Khan <wazedkh...@gmail.com> wrote:HiI 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...@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/2ff98ea9-e896-4baf-922b-c47f577924dan%40googlegroups.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/CALWCTKgnQy4OTuHFacDTM8Gd6kBoanuu2e%2B6zwfUxZ4r0OtK6Q%40mail.gmail.com.
No comments:
Post a Comment