mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-21 17:16:47 +03:00
Fix typo in docs (#6212)
This commit is contained in:
parent
d976ac56b0
commit
2e8ccfd883
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user