diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index 8985c4ce6bfa517286e656e4a1e7f65f13d714a4..8fe7317eb2e3344911116e5b0d2863be3a95545f 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -27,7 +27,7 @@ def lesson(request: HttpRequest, week: Optional[int] = None, period_id: Optional context['lesson_period'] = lesson_period context['week'] = wanted_week - lesson_documentation, created = LessonDocumentation.objects.get_or_create(lesson_period=lesson_period, week=week) + lesson_documentation, created = LessonDocumentation.objects.get_or_create(lesson_period=lesson_period, week=wanted_week) lesson_documentation_form = LessonDocumentationForm(request.POST or None, instance=lesson_documentation) if request.method == 'POST':