Skip to content

Commit a4e0f03

Browse files
committed
Tweak quickstart to show newest users first in list view
1 parent 5c1d6a9 commit a4e0f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Right, we'd better write some views then. Open `tutorial/quickstart/views.py` a
6868
"""
6969
API endpoint that allows users to be viewed or edited.
7070
"""
71-
queryset = User.objects.all()
71+
queryset = User.objects.all().order_by('-date_joined')
7272
serializer_class = UserSerializer
7373

7474

0 commit comments

Comments
 (0)