Skip to content
Snippets Groups Projects
Verified Commit 82a9a66f authored by Julian's avatar Julian Committed by Jonathan Weth
Browse files

Display homework correctly

(cherry picked from commit b9d69d1a)
parent f903b2f7
No related branches found
No related tags found
1 merge request!246Prepare release 2.0rc7
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
<th>{% trans "Lesson topic" %}</th> <th>{% trans "Lesson topic" %}</th>
<td>{% firstof register_object.get_lesson_documentation.topic "–" %}</td> <td>{% firstof register_object.get_lesson_documentation.topic "–" %}</td>
</tr> </tr>
{% with period.get_lesson_documentation as lesson_documentation %} {% with register_object.get_lesson_documentation as lesson_documentation %}
{% if lesson_documentation.homework %} {% if lesson_documentation.homework %}
<tr> <tr>
<th>{% trans "Homework" %}</th> <th>{% trans "Homework" %}</th>
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
<dt>{% trans "Lesson topic" %}</dt> <dt>{% trans "Lesson topic" %}</dt>
<dd>{% firstof register_object.get_lesson_documentation.topic "–" %}</dd> <dd>{% firstof register_object.get_lesson_documentation.topic "–" %}</dd>
{% with period.get_lesson_documentation as lesson_documentation %} {% with register_object.get_lesson_documentation as lesson_documentation %}
{% if lesson_documentation.homework %} {% if lesson_documentation.homework %}
<dt>{% trans "Homework" %}</dt> <dt>{% trans "Homework" %}</dt>
<dd>{% firstof register_object.get_lesson_documentation.homework "–" %}</dd> <dd>{% firstof register_object.get_lesson_documentation.homework "–" %}</dd>
......
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