I have an error in django project

14 views
Skip to first unread message

Yabesh

unread,
Oct 23, 2021, 11:18:52 AM10/23/21
to Django users

Sebastian Jung

unread,
Oct 23, 2021, 12:05:09 PM10/23/21
to django...@googlegroups.com
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 <samya...@gmail.com> schrieb am Sa., 23. Okt. 2021, 17:18:
--
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/e71adaad-2cf9-48c1-a0a2-042efe4fb0ddn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages