See #432: can now filter with tags in Track/album/artist admin

This commit is contained in:
Eliot Berriot 2019-07-25 10:43:34 +02:00
parent 1674c771ca
commit a48a32c7e9
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class ManageArtistFilterSet(filters.FilterSet):
"field": forms.IntegerField(),
"distinct": True,
},
"tag": {
"to": "tagged_items__tag__name",
"distinct": True,
},
},
)
)
@ -91,6 +95,10 @@ class ManageAlbumFilterSet(filters.FilterSet):
"field": forms.IntegerField(),
"distinct": True,
},
"tag": {
"to": "tagged_items__tag__name",
"distinct": True,
},
},
)
)
@ -129,6 +137,10 @@ class ManageTrackFilterSet(filters.FilterSet):
"field": forms.IntegerField(),
"distinct": True,
},
"tag": {
"to": "tagged_items__tag__name",
"distinct": True,
},
},
)
)