Skip to content
Snippets Groups Projects
Commit 73559ec3 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Now order artists by name instead of creation date on index view

parent ae13ab2b
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ class TagViewSetMixin(object): ...@@ -41,7 +41,7 @@ class TagViewSetMixin(object):
class ArtistViewSet(SearchMixin, viewsets.ReadOnlyModelViewSet): class ArtistViewSet(SearchMixin, viewsets.ReadOnlyModelViewSet):
queryset = ( queryset = (
models.Artist.objects.all() models.Artist.objects.all()
.order_by('-creation_date') .order_by('name')
.prefetch_related( .prefetch_related(
'albums__tracks__files', 'albums__tracks__files',
'albums__tracks__tags')) 'albums__tracks__tags'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment