From 0dc2903b126f7f2d9a89e198d5d5fe2555f69c8b Mon Sep 17 00:00:00 2001
From: Konrad Mohrfeldt <konrad.mohrfeldt@farbdev.org>
Date: Thu, 17 Mar 2022 13:21:04 +0100
Subject: [PATCH] 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.
---
 program/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/program/views.py b/program/views.py
index 4293d354..f00fcaa5 100644
--- a/program/views.py
+++ b/program/views.py
@@ -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 (
-- 
GitLab