From f4175b4b079ba939bdb917a64d921610f32bd536 Mon Sep 17 00:00:00 2001 From: Matt George <102607949+geomat0101@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:10:53 -0500 Subject: [PATCH] Update quickstart.md (#9185) add .order_by() to eliminate Pagination UnorderedObjectListWarning --- docs/tutorial/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index 09f249f6e..9a9da4043 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -105,7 +105,7 @@ Right, we'd better write some views then. Open `tutorial/quickstart/views.py` a """ API endpoint that allows groups to be viewed or edited. """ - queryset = Group.objects.all() + queryset = Group.objects.all().order_by('name') serializer_class = GroupSerializer permission_classes = [permissions.IsAuthenticated]