mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +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:
|
class Meta:
|
||||||
model = queryset.model
|
model = queryset.model
|
||||||
fields = filter_fields
|
fields = filter_fields
|
||||||
|
order_by = True
|
||||||
return AutoFilterSet
|
return AutoFilterSet
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user