From 2e8ccfd883ea2c4e304a03b3585e1fa7f9fe3d0a Mon Sep 17 00:00:00 2001 From: Anish Shrestha Date: Wed, 26 Sep 2018 00:56:13 +0545 Subject: [PATCH] Fix typo in docs (#6212) --- docs/api-guide/viewsets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/viewsets.md b/docs/api-guide/viewsets.md index d98f518b3..819b6cec3 100644 --- a/docs/api-guide/viewsets.md +++ b/docs/api-guide/viewsets.md @@ -158,7 +158,7 @@ A more complete example of extra actions: @action(detail=False) def recent_users(self, request): - recent_users = User.objects.all().order('-last_login') + recent_users = User.objects.all().order_by('-last_login') page = self.paginate_queryset(recent_users) if page is not None: