mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Update filters.py
Here's a little cleanup for ya, brah!
This commit is contained in:
parent
7bc63fbb11
commit
486f4c8047
|
@ -134,7 +134,7 @@ class OrderingFilter(BaseFilterBackend):
|
|||
ordering = self.remove_invalid_fields(queryset, ordering)
|
||||
|
||||
if not ordering:
|
||||
# Use 'ordering' attribtue by default
|
||||
# Use 'ordering' attribute by default
|
||||
ordering = self.get_default_ordering(view)
|
||||
|
||||
if ordering:
|
||||
|
|
Loading…
Reference in New Issue
Block a user