Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter-7: Building an Online Shop #84

Open
yasiriqbal1990 opened this issue May 24, 2021 · 0 comments
Open

Chapter-7: Building an Online Shop #84

yasiriqbal1990 opened this issue May 24, 2021 · 0 comments

Comments

@yasiriqbal1990
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant