From b17706410a89cb969509ebf2479c7be3f7645197 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 30 Apr 2021 13:34:14 +0200 Subject: [PATCH] Revert "Add First/Last Date and Time of Check-In/-Out to PDF-vars" This reverts commit 5ecbd5c8d8a31579c91118b4a3d3d3068c62dbb2. --- src/pretix/base/pdf.py | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/src/pretix/base/pdf.py b/src/pretix/base/pdf.py index 51bf7439a6..38cdcc3d40 100644 --- a/src/pretix/base/pdf.py +++ b/src/pretix/base/pdf.py @@ -70,7 +70,7 @@ from reportlab.platypus import Paragraph from pretix.base.i18n import language from pretix.base.invoice import ThumbnailingImageReader -from pretix.base.models import Order, OrderPosition, Question, Checkin +from pretix.base.models import Order, OrderPosition, Question from pretix.base.settings import PERSON_NAME_SCHEMES from pretix.base.signals import layout_image_variables, layout_text_variables from pretix.base.templatetags.money import money_filter @@ -400,46 +400,6 @@ DEFAULT_VARIABLES = OrderedDict(( "editor_sample": 4, "evaluate": lambda op, order, ev: str(op.seat.seat_number if op.seat else "") }), - ("first_checkin", { - "label": _("Date and Time of first Check-In"), - "editor_sample": _("2017-05-31 19:00"), - "evaluate": lambda op, order, ev: date_format( - op.checkins.filter(type=Checkin.TYPE_ENTRY).order_by('datetime').first().datetime.astimezone( - timezone(ev.settings.timezone) - ), - "SHORT_DATETIME_FORMAT" - ) if op.checkins.first() else "" - }), - ("last_checkin", { - "label": _("Date and Time of last Check-In"), - "editor_sample": _("2017-05-31 19:00"), - "evaluate": lambda op, order, ev: date_format( - op.checkins.filter(type=Checkin.TYPE_ENTRY).order_by('datetime').last().datetime.astimezone( - timezone(ev.settings.timezone) - ), - "SHORT_DATETIME_FORMAT" - ) if op.checkins.last() else "" - }), - ("first_checkout", { - "label": _("Date and Time of first Check-Out"), - "editor_sample": _("2017-05-31 19:00"), - "evaluate": lambda op, order, ev: date_format( - op.checkins.filter(type=Checkin.TYPE_EXIT).order_by('datetime').first().datetime.astimezone( - timezone(ev.settings.timezone) - ), - "SHORT_DATETIME_FORMAT" - ) if op.checkins.first() else "" - }), - ("last_checkout", { - "label": _("Date and Time of last Check-Out"), - "editor_sample": _("2017-05-31 19:00"), - "evaluate": lambda op, order, ev: date_format( - op.checkins.filter(type=Checkin.TYPE_EXIT).order_by('datetime').last().datetime.astimezone( - timezone(ev.settings.timezone) - ), - "SHORT_DATETIME_FORMAT" - ) if op.checkins.last() else "" - }), )) DEFAULT_IMAGES = OrderedDict([])