new = 0
skipped = 0
- for confirmation in Confirmation.objects.all():
+ emails = list(Submission.objects.values_list('email', flat=True))
+ for confirmation in Confirmation.objects.exclude(email__in=emails):
if not Submission.objects.filter(email=confirmation.email).exists():
args = {}
for attr in ['first_name', 'last_name', 'email', 'contact']:
{% for option in exercise.options %}
<li class="question-piece" data-name="{{option.id}}">
<input type="checkbox" name="e{{no}}_{{option.id}}" id="e{{no}}_{{option.id}}"{% if option.id|stringformat:"s" in exercise.saved_answer.closed_part %} checked="checked"{% endif %}>
- <label for="e{{no}}_{{option.id}}">{{option.text|safe}}</label>
+ <label for="e{{no}}_{{option.id}}">{# if option.id in exercise.answer %}<strong>{% endif #}{{option.text|safe}}{# if option.id in exercise.answer %}</strong>{% endif #}</label>
</li>
{% endfor %}
</ol>