Add checkin tick to order positions

This commit is contained in:
Raphael Michel
2016-12-21 19:19:41 +01:00
parent 5c8c106d5b
commit 3db4833290
2 changed files with 4 additions and 1 deletions

View File

@@ -164,6 +164,9 @@
{% if line.variation %}
{{ line.variation }}
{% endif %}
{% if line.checkins.all %}
<span class="fa fa-check" data-toggle="tooltip" title="{% blocktrans trimmed with date=line.checkins.all.0.datetime|date:'d.m.Y H:i' %}First scanned: {{ date }}{% endblocktrans %}"></span>
{% endif %}
{% if line.voucher %}
<br/><span class="fa fa-tags"></span> {% trans "Voucher code used:" %}
<a href="{% url "control:event.voucher" event=request.event.slug organizer=request.event.organizer.slug voucher=line.voucher.pk %}">

View File

@@ -162,7 +162,7 @@ class OrderDetail(OrderView):
).select_related(
'item', 'variation'
).prefetch_related(
'item__questions', 'answers', 'answers__question'
'item__questions', 'answers', 'answers__question', 'checkins'
).order_by('positionid')
positions = []