diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 13c77d933fc683be3acbd745b2109bf0eb1c0c89..68c0033c89d508fa25e7a64a3df13f8ad135b581 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ Unreleased Fixed ~~~~~ +* Status icon in single-lesson view showed 'Missing data' although the data were complete. * The personal note tab of a lesson was not well usable on mobile devices. `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,