filter out invalid schedule items
This commit is contained in:
parent
fc02f8cafb
commit
6caa29e0c9
4 changed files with 44 additions and 23 deletions
|
@ -141,7 +141,7 @@ class PreferenceViewSet(viewsets.ModelViewSet):
|
|||
class ScheduleViewSet(viewsets.ModelViewSet):
|
||||
queryset = Schedule.objects.all()
|
||||
serializer_class = ScheduleSerializer
|
||||
filter_fields = ("starts", "ends", "playout_status", "broadcasted")
|
||||
filter_fields = ("starts", "ends", "playout_status", "broadcasted", "is_valid")
|
||||
model_permission_name = "schedule"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue