Skip to content

Commit f4175b4

Browse files
authored
Update quickstart.md (#9185)
add .order_by() to eliminate Pagination UnorderedObjectListWarning
1 parent 530baa2 commit f4175b4

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
@@ -105,7 +105,7 @@ Right, we'd better write some views then. Open `tutorial/quickstart/views.py` a
105105
"""
106106
API endpoint that allows groups to be viewed or edited.
107107
"""
108-
queryset = Group.objects.all()
108+
queryset = Group.objects.all().order_by('name')
109109
serializer_class = GroupSerializer
110110
permission_classes = [permissions.IsAuthenticated]
111111

0 commit comments

Comments
 (0)