Merge pull request #4003 from blaze33/patch-1

Fixed use of deprecated Query.aggregates
This commit is contained in:
José Padilla 2016-03-19 11:39:53 -04:00
commit e946a496dc

View File

@ -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 = [