From d1146add38f8b67af3388b08d7c9d21f48636c99 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 24 Aug 2020 17:27:06 +0200 Subject: [PATCH] Allow to re-check-in someone through the backend --- src/pretix/control/views/checkin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/views/checkin.py b/src/pretix/control/views/checkin.py index db0f836239..e6a20d627c 100644 --- a/src/pretix/control/views/checkin.py +++ b/src/pretix/control/views/checkin.py @@ -141,7 +141,9 @@ class CheckInListShow(EventPermissionRequiredMixin, PaginationMixin, ListView): for op in positions: if op.order.status == Order.STATUS_PAID or (self.list.include_pending and op.order.status == Order.STATUS_PENDING): t = Checkin.TYPE_EXIT if request.POST.get('checkout') == 'true' else Checkin.TYPE_ENTRY - if self.list.allow_multiple_entries or t != Checkin.TYPE_ENTRY: + + lci = op.checkins.filter(list=self.list).first() + if self.list.allow_multiple_entries or t != Checkin.TYPE_ENTRY or (lci and lci.type != Checkin.TYPE_ENTRY): ci = Checkin.objects.create(position=op, list=self.list, datetime=now(), type=t) created = True else: