diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6b15e880349b8d0e5d378a72c7c0ef69befc7b51..169cebc49df0cb6160c8f5c9f612b9c7287e54fd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. Unreleased ---------- +Fixed +~~~~~ + +* Status icon in single-lesson view showed 'Missing data' although the data were complete. + `2.0` - 2022-02-06 ------------------ diff --git a/aleksis/apps/alsijil/views.py b/aleksis/apps/alsijil/views.py index ccb11c6da46750780bf06e987407627f35690e5d..2d8968207f7f94ec8eac1717a68435fbe555d996 100644 --- a/aleksis/apps/alsijil/views.py +++ b/aleksis/apps/alsijil/views.py @@ -198,6 +198,8 @@ def register_object( # Create or get lesson documentation object; can be empty when first opening lesson lesson_documentation = register_object.get_or_create_lesson_documentation(wanted_week) + context["has_documentation"] = bool(lesson_documentation.topic) + lesson_documentation_form = LessonDocumentationForm( request.POST or None, instance=lesson_documentation,