fix - show answers in participant view for inactive assignments
authorJan Szejko <janek37@gmail.com>
Tue, 13 Feb 2018 09:13:23 +0000 (10:13 +0100)
committerJan Szejko <janek37@gmail.com>
Tue, 13 Feb 2018 09:13:23 +0000 (10:13 +0100)
stage2/templates/stage2/participant.html

index 2ed6d62..e6761d2 100644 (file)
@@ -19,7 +19,7 @@
         <p><strong>{{ form.value.label }}:</strong></p>
         {{ form.value.errors }}
         <p>
-          {% if assignment.is_active %}{{ form.value }}{% else %}{{ form.value.initial }}{% endif %}
+          {% if assignment.is_active %}{{ form.value }}{% else %}{{ form.value.value }}{% endif %}
         </p>
       {% endfor %}
       {% for form, attachment in assignment.attachment_forms %}