Skip to content

Commit

Permalink
Merge pull request #4003 from blaze33/patch-1
Browse files Browse the repository at this point in the history
Fixed use of deprecated Query.aggregates
  • Loading branch information
jpadilla committed Mar 19, 2016
2 parents 3645388 + 24694dd commit e946a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def get_valid_fields(self, queryset, view):
]
valid_fields += [
(key, key.title().split('__'))
for key in queryset.query.aggregates.keys()
for key in queryset.query.annotations.keys()
]
else:
valid_fields = [
Expand Down

0 comments on commit e946a49

Please sign in to comment.