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
Fixed a bug in Dashboard Catalogue filter #1889
Conversation
Fixed a bug in Dashboard Catalogue when filter by upc and have multiple results.
With Django 1.8.5 and Postgres 9.4.5 the sql query in this case will be:
and Postgres will return: ERROR: more than one row returned by a subquery used as an expression With __in lookup the query will be:
And Postgres will return correctly multiple results. |
@mvantellingen where is the right place to write a test in this case? I didn't find any that test the Dashboard Catalogue Views. |
The dashboard tests can be found here: https://github.com/django-oscar/django-oscar/tree/master/tests/functional/dashboard |
These tests will fail without this PR fix.
I wrote some tests that will fail without this PR fix |
Fixed a bug in Dashboard Catalogue filter
Thanks again! |
Fixed a bug in Dashboard Catalogue when filter by upc and have multiple results.
Where is the right place to write some tests for this?