mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
42b567ab4c
Refactored the filter and order_by expressions in the Aggregate class to return a list of Expression (or None) values, ensuring that the list item is always available and represents the filter expression. For the PostgreSQL OrderableAggMixin, the returned list will always include the filter and the order_by value as the last two elements. Lastly, emtpy Q objects passed directly into aggregate objects using Aggregate.filter in admin facets are filtered out when resolving the expression to avoid errors in get_refs(). Thanks Simon Charette for the review. |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
test_filter_argument.py | ||
tests.py |