Fix typo in docs (#6212)

This commit is contained in:
Anish Shrestha 2018-09-26 00:56:13 +05:45 committed by Ryan P Kilby
parent d976ac56b0
commit 2e8ccfd883

View File

@ -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: