Hi,
Use request.user instead of self.user.
You're getting the error because SellerDashboard class has no attribute
called user. The user object you need is stored as user attribute in the
request parameter sent with get().
Regards,
Aditya
On Sunday, September 25, 2016 at 5:01:43 PM UTC+5:30,
Hi,
Following is the link and kindly assist as I've been trying to do this for
hours now.
http://stackoverflow.com/questions/39685833/django-filter-with-foreignkey-not-working?noredirect=1#comment66671635_39685833
Regards,
Shazia
--
You received this message because you are subscribed to the G
2 matches
Mail list logo