Skip to content
Snippets Groups Projects
Commit 4f42ca7f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch...

Merge branch '208-lesson-status-shows-missing-data-although-lesson-documentation-is-filled' into 'master'

Resolve "Lesson status shows "Missing data" although lesson documentation is filled"

Closes #208

See merge request AlekSIS/official/AlekSIS-App-Alsijil!270
parents db20e87a 92e5cdc7
No related branches found
No related tags found
1 merge request!270Resolve "Lesson status shows "Missing data" although lesson documentation is filled"
Pipeline #54364 passed
...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. ...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased Unreleased
---------- ----------
Fixed
~~~~~
* Status icon in single-lesson view showed 'Missing data' although the data were complete.
`2.0` - 2022-02-06 `2.0` - 2022-02-06
------------------ ------------------
......
...@@ -198,6 +198,8 @@ def register_object( ...@@ -198,6 +198,8 @@ def register_object(
# Create or get lesson documentation object; can be empty when first opening lesson # Create or get lesson documentation object; can be empty when first opening lesson
lesson_documentation = register_object.get_or_create_lesson_documentation(wanted_week) lesson_documentation = register_object.get_or_create_lesson_documentation(wanted_week)
context["has_documentation"] = bool(lesson_documentation.topic)
lesson_documentation_form = LessonDocumentationForm( lesson_documentation_form = LessonDocumentationForm(
request.POST or None, request.POST or None,
instance=lesson_documentation, instance=lesson_documentation,
......
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