Tweak quickstart to show newest users first in list view

This commit is contained in:
Tom Christie 2015-07-30 14:18:09 +01:00
parent 5c1d6a9200
commit a4e0f03050

View File

@ -68,7 +68,7 @@ Right, we'd better write some views then. Open `tutorial/quickstart/views.py` a
"""
API endpoint that allows users to be viewed or edited.
"""
queryset = User.objects.all()
queryset = User.objects.all().order_by('-date_joined')
serializer_class = UserSerializer