Skip to content
Snippets Groups Projects
Verified Commit f30b0436 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: use showIds to filter playlists by shows IDs

parent b7ea10c7
No related branches found
No related tags found
1 merge request!59Add playlists
Pipeline #8714 passed
...@@ -341,11 +341,11 @@ class PlaylistFilter(filters.FilterSet): ...@@ -341,11 +341,11 @@ class PlaylistFilter(filters.FilterSet):
field_name="entries__file_id", field_name="entries__file_id",
help_text="Return only playlists that use to the specified file ID(s).", help_text="Return only playlists that use to the specified file ID(s).",
) )
show_id = filters.NumberFilter( show_ids = IntegerInFilter(
field_name="show_id", field_name="show_id",
help_text="Return only playlists for the specified show ID.", help_text="Return only playlists for the specified show ID.",
) )
class Meta: class Meta:
fields = ("contains_file_ids",) fields = ("contains_file_ids", "show_ids")
model = models.Playlist model = models.Playlist
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment