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 <ahiresaurabh...@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+unsubscr...@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
> <https://groups.google.com/d/msgid/django-users/CAARnLzxHO5QpX3U-4qrH%2BJC_kne8cOuSmcPT7NZTxJUXxM4eFQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAJsLnrGS75szU%3D9WDM0eOmZOD424Ne5GKFucNoy26wfaym2Jg%40mail.gmail.com.

Reply via email to