Skip to content
Snippets Groups Projects
Verified Commit d8176cbf authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add missing context information 'has_documentation' to register object view

parent db20e87a
No related branches found
No related tags found
1 merge request!270Resolve "Lesson status shows "Missing data" although lesson documentation is filled"
Pipeline #54338 passed
......@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Lesson status icon showed 'Missing data' although the data were complete.
`2.0` - 2022-02-06
------------------
......
......@@ -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,
......
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