Hello,

Please change code:

SubCategory.objects.filter(productcategory_id=productcategory_id).order_by('name')


To


SubCategory.objects.filter(id=productcategory_id).order_by('name')


Regards


Yabesh <[email protected]> schrieb am Sa., 23. Okt. 2021, 17:18:

>
> https://stackoverflow.com/questions/69687988/django-core-exceptions-fielderror-cannot-resolve-keyword-productcategory-id-i
>
>
>
> Can someone please help me to resolve this error.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e71adaad-2cf9-48c1-a0a2-042efe4fb0ddn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e71adaad-2cf9-48c1-a0a2-042efe4fb0ddn%40googlegroups.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mxOeZTKGLLR1oYB%2B61%3D3vsV7kajyrUpUkqHZdUQOqMeQw%40mail.gmail.com.

Reply via email to