Commit 99083baf by Chad Barrington

Update filters.py

Fixed cut n pasted get_ordering docstring for ya bro.
parent 486f4c80
...@@ -109,8 +109,7 @@ class OrderingFilter(BaseFilterBackend): ...@@ -109,8 +109,7 @@ class OrderingFilter(BaseFilterBackend):
def get_ordering(self, request): def get_ordering(self, request):
""" """
Search terms are set by a ?search=... query parameter, Ordering is set by a comma delimited ?ordering=... query parameter.
and may be comma and/or whitespace delimited.
""" """
params = request.QUERY_PARAMS.get(self.ordering_param) params = request.QUERY_PARAMS.get(self.ordering_param)
if params: if params:
......
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