mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #4003 from blaze33/patch-1
Fixed use of deprecated Query.aggregates
This commit is contained in:
commit
e946a496dc
|
@ -245,7 +245,7 @@ class OrderingFilter(BaseFilterBackend):
|
|||
]
|
||||
valid_fields += [
|
||||
(key, key.title().split('__'))
|
||||
for key in queryset.query.aggregates.keys()
|
||||
for key in queryset.query.annotations.keys()
|
||||
]
|
||||
else:
|
||||
valid_fields = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user