-
Notifications
You must be signed in to change notification settings - Fork 2
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
Stb187 tags feature #187
Stb187 tags feature #187
Conversation
catalog/context.py
Outdated
raise http.Http404('Page without products does not exist.') | ||
# @todo #187:30m Return back empty products list 404 check. | ||
# Now we have problem with stb tests. | ||
# Now stb tests don't aware of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncomment the check for empty products list.
Do it after stb tests will cover a case for it.
catalog/context.py
Outdated
.filter_by_products(products) | ||
.get_brands(products) | ||
) if tags else defaultdict(lambda: None) | ||
images = defaultdict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you use defaultdict
here? It seems we can use dict
instead
9a5314e
to
4f922de
Compare
merge it. It blocks huge set of tasks |
fidals/stroyprombeton#187