You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the slug and the category name does not match, it throws and exception in the original code. The category name is already retrieved in line 13.
The text was updated successfully, but these errors were encountered:
BjornHeller
changed the title
category__in filters name=category_slug throws exception when slug is different from name
Part-05: category__in filters name=category_slug throws exception when slug is different from name
Jan 26, 2022
in store>view.py line 13
category__in=Category.objects.get(name=category_slug).get_descendants(include_self=True)
should most likely be
category__in=Category.objects.get(name=category).get_descendants(include_self=True)
if the slug and the category name does not match, it throws and exception in the original code. The category name is already retrieved in line 13.
The text was updated successfully, but these errors were encountered: