Fix #1145: Support ordering=random for artists, albums, tracks and channels endpoints

This commit is contained in:
Agate 2020-06-22 13:22:26 +02:00
commit e6344338f9
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
3 changed files with 36 additions and 18 deletions

View file

@ -35,6 +35,7 @@ class ChannelFilter(moderation_filters.HiddenContentFilterSet):
fields=(
("creation_date", "creation_date"),
("artist__modification_date", "modification_date"),
("?", "random"),
)
)