Chaining filter is not working

16 views
Skip to first unread message

Saurabh Ahire

unread,
Mar 30, 2021, 8:59:13 AM3/30/21
to django...@googlegroups.com
Please check the model class also , if there are any mistakes point them out
2021-03-29 (10).png

oba stephen

unread,
Mar 30, 2021, 9:22:12 AM3/30/21
to django...@googlegroups.com
You didn't equate to anything.

You have to specify what quality you are filtering by. 

Best regards

Stephen Oba

On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire <ahiresa...@gmail.com> wrote:
Please check the model class also , if there are any mistakes point them out

--
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/CAARnLzxHO5QpX3U-4qrH%2BJC_kne8cOuSmcPT7NZTxJUXxM4eFQ%40mail.gmail.com.

oba stephen

unread,
Mar 30, 2021, 9:23:42 AM3/30/21
to django...@googlegroups.com
Also you need to assign a related name to the foreign key for that filter to work. 

Best regards

Stephen Oba

On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire <ahiresa...@gmail.com> wrote:
Please check the model class also , if there are any mistakes point them out

--

Saurabh Ahire

unread,
Mar 31, 2021, 5:50:16 AM3/31/21
to django...@googlegroups.com
Thank you Oba Stephen , it worked for me.

Reply all
Reply to author
Forward
0 new messages