mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
Add order_by to the AutoFilterSet
`AutoFilterSet` should contains `order_by` set to all by default.
This commit is contained in:
parent
f5c34926d6
commit
222c1d1122
|
@ -53,6 +53,7 @@ class DjangoFilterBackend(BaseFilterBackend):
|
|||
class Meta:
|
||||
model = queryset.model
|
||||
fields = filter_fields
|
||||
order_by = True
|
||||
return AutoFilterSet
|
||||
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user