Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
b7ea10c7
Verified
Commit
b7ea10c7
authored
4 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
feat: use containsFileIds to filter file IDs
parent
31a5cc1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!59
Add playlists
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/filters.py
+3
-3
3 additions, 3 deletions
program/filters.py
with
3 additions
and
3 deletions
program/filters.py
+
3
−
3
View file @
b7ea10c7
...
...
@@ -337,9 +337,9 @@ class VirtualTimeslotFilterSet(filters.FilterSet):
class
PlaylistFilter
(
filters
.
FilterSet
):
file_id
=
filters
.
Number
Filter
(
contains_
file_id
s
=
IntegerIn
Filter
(
field_name
=
"
entries__file_id
"
,
help_text
=
"
Return only playlists that use to the specified file ID.
"
,
help_text
=
"
Return only playlists that use to the specified file ID
(s)
.
"
,
)
show_id
=
filters
.
NumberFilter
(
field_name
=
"
show_id
"
,
...
...
@@ -347,5 +347,5 @@ class PlaylistFilter(filters.FilterSet):
)
class
Meta
:
fields
=
(
"
file_id
"
,)
fields
=
(
"
contains_
file_id
s
"
,)
model
=
models
.
Playlist
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment