Skip to content
Snippets Groups Projects
Commit b3948bb7 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: don’t force REST API consumers to set repetition_of for timeslots

parent cb53395f
No related branches found
No related tags found
No related merge requests found
Pipeline #3124 passed
......@@ -661,7 +661,9 @@ class ScheduleDryRunResponseSerializer(serializers.Serializer):
class TimeSlotSerializer(serializers.ModelSerializer):
show = serializers.PrimaryKeyRelatedField(queryset=Show.objects.all())
schedule = serializers.PrimaryKeyRelatedField(queryset=Schedule.objects.all())
repetition_of = serializers.PrimaryKeyRelatedField(queryset=TimeSlot.objects.all())
repetition_of = serializers.PrimaryKeyRelatedField(
queryset=TimeSlot.objects.all(), allow_null=True
)
class Meta:
model = TimeSlot
......
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