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
I am on Chapter-7 but I am getting confused when I see category_slug=True pass as the second optional parameter of def Product_list(request, category_slug=None) in shop/views.py but in model fields, you have mentioned just slug not category_slug
My question is, how Django will know category_slug is coming from the category model field? How category_slug will officially filter the products?
Please help. Thanks
The text was updated successfully, but these errors were encountered:
I am on Chapter-7 but I am getting confused when I see category_slug=True pass as the second optional parameter of def Product_list(request, category_slug=None) in shop/views.py but in model fields, you have mentioned just slug not category_slug
My question is, how Django will know category_slug is coming from the category model field? How category_slug will officially filter the products?
Please help. Thanks
The text was updated successfully, but these errors were encountered: