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
Dashboard-->vouchersets--> sorting "Num orders", "Num baskets". Cannot resolve keyword 'num_basket_additions' into field #3978
Comments
Hi @joeyjurjens, Could you drop a hint where to look for the bug please ? I tried very much but not reaching...Thanks !! |
Hi, the issue occurs due to this in the template: This is the Python code that belongs to it I think: I hope that helps! |
I had seen the python code(view,models,sort_queryset etc method) earlier. They all seem to be fine. Maybe I am missing something ? |
@vallabhtiwari you can replicate by creating an Offer, Voucher set and then try to order by in that view (see image below). Date created will order fine since it is a database field but others (red) would not since they are computed values. Possible workarounds seems to be turning the
|
https://latest.oscarcommerce.com/en-gb/dashboard/vouchers/sets/?sort=num_basket_additions
The text was updated successfully, but these errors were encountered: