Update filters.py

Here's a little cleanup for ya, brah!
This commit is contained in:
Chad Barrington 2013-08-14 15:18:44 -05:00
parent 7bc63fbb11
commit 486f4c8047

View File

@ -134,7 +134,7 @@ class OrderingFilter(BaseFilterBackend):
ordering = self.remove_invalid_fields(queryset, ordering) ordering = self.remove_invalid_fields(queryset, ordering)
if not ordering: if not ordering:
# Use 'ordering' attribtue by default # Use 'ordering' attribute by default
ordering = self.get_default_ordering(view) ordering = self.get_default_ordering(view)
if ordering: if ordering: