Allow taking the ordering parameter in the unit tests for the decorator

This commit is contained in:
Matthew Jones 2014-06-25 14:54:32 -04:00
parent 053bb4eeb0
commit 8c502478a0

View File

@ -24,7 +24,7 @@ class PaginatedDecoratorTests(TestCase):
class View(APIView):
permission_classes = (AllowAny,)
@paginated
def get(self, request, limit, offset):
def get(self, request, limit, ordering, offset):
return ['a', 'b', 'c', 'd', 'e'], 26
self.view = View.as_view()