diff --git a/program/views.py b/program/views.py index 5e8868c42953d3d8f9d215e7f5d5496f92c8b23c..d7af879f454a331a48d4bf579f70bce43e53c2df 100644 --- a/program/views.py +++ b/program/views.py @@ -567,6 +567,10 @@ class APIScheduleViewSet( if show_pk is None: show_pk = request.data.get("schedule").get("show_id") + # FIXME: this is wrong + if show_pk == 0: + show_pk = request.data.get("show_id") + # Only allow creating when calling /shows/{show_pk}/schedules/ and with ehe `schedule` JSON # object if show_pk is None or "schedule" not in request.data: