-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ProductRetrieveView:param:with_direct_siblings if True return product_pre, product_next to the context and direct_siblings in serializer #801
base: releases/1.2
Are you sure you want to change the base?
Conversation
Otherwise change |
Thanks for this pull request. Rendering the previous and next siblings of a product, may really be useful in some situations.
But in general looking at your code, how does this view function behave, if someone filters by a certain product tag, or uses the search input field? Where is that information kept while rendering the product's detail view? For this we have three possible solutions. Add this filtering information to the session, or to a cookie or as a request parameter. The latter generates ugly URLs for the detail view. Session could be problematic, because in django-SHOP the Let's discuss this on a chat. |
e851bff
to
02ee0cc
Compare
c22018a
to
2bdfc8b
Compare
Same things as the linked pull request #734 but reviewed in a simpler way.