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

fix: fix typo causing note creations to fail

Notes will only be created if called through a timeslot subroute. The
typo prohibited the note creation, because timeslot_pk was always None
and caused the view to error early.
parent 3bfec8a5
No related branches found
No related tags found
1 merge request!20refactor collection filters with django_filters
......@@ -695,7 +695,7 @@ class APINoteViewSet(viewsets.ModelViewSet):
"""Create a note"""
show_pk, schedule_pk, timeslot_pk = get_values(
self.kwargs, "show_pk", "schedule_pk", "timelost_pk"
self.kwargs, "show_pk", "schedule_pk", "timeslot_pk"
)
if (
......
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