Commit cd304073 by Tom Christie

Merge pull request #1097 from mociepka/add_default_order_by_in_filtering

Add order_by to the AutoFilterSet
parents 2da9ab8c 222c1d11
...@@ -53,6 +53,7 @@ class DjangoFilterBackend(BaseFilterBackend): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment