diff --git a/program/serializers.py b/program/serializers.py index deb5e16348a58dd183d7b14119f119580773f57a..adb716c0f8b0c8976f45e045c53e2594d90a146b 100644 --- a/program/serializers.py +++ b/program/serializers.py @@ -999,12 +999,6 @@ class NoteSerializer(serializers.ModelSerializer): links_data = validated_data.pop("links", []) - # required - # TODO: Once we remove nested routes, this hack should be removed - if "timeslot" not in validated_data: - timeslot_pk = TimeSlot.objects.get(pk=self.context["request"].path.split("/")[-3]) - validated_data["timeslot"] = validated_data.pop("timeslot", timeslot_pk) - show = validated_data["timeslot"].schedule.show user = self.context.get("request").user user_is_owner = user in show.owners.all()