From 3db4833290e2aa6bbc7880988d58879d3494d6c7 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 21 Dec 2016 19:19:41 +0100 Subject: [PATCH] Add checkin tick to order positions --- src/pretix/control/templates/pretixcontrol/order/index.html | 3 +++ src/pretix/control/views/orders.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 21e8be8e59..0453c4830b 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -164,6 +164,9 @@ {% if line.variation %} – {{ line.variation }} {% endif %} + {% if line.checkins.all %} + + {% endif %} {% if line.voucher %}
{% trans "Voucher code used:" %} diff --git a/src/pretix/control/views/orders.py b/src/pretix/control/views/orders.py index e916c70b99..61cd4c233a 100644 --- a/src/pretix/control/views/orders.py +++ b/src/pretix/control/views/orders.py @@ -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 = []