mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Check-in: Show more information (#3576)
* Check-in: Show more information * Add change notes * Rebase migration * Add "expand" option to checkinrpc * REmove accidental file * Docs fixes * REbase migration * Rebase migration * Fix typo * REbase migration * Make web-checkin look more like new android checkin
This commit is contained in:
@@ -551,9 +551,12 @@ class CheckInListSimulator(EventPermissionRequiredMixin, FormView):
|
||||
gate=form.cleaned_data.get("gate"),
|
||||
).data
|
||||
|
||||
if self.result.get("position"):
|
||||
op = OrderPosition.objects.get(pk=self.result["position"]["id"])
|
||||
self.result["position_object"] = op
|
||||
|
||||
if form.cleaned_data["checkin_type"] == Checkin.TYPE_ENTRY and self.list.rules and self.result.get("position")\
|
||||
and (self.result["status"] in ("ok", "incomplete") or self.result["reason"] == "rules"):
|
||||
op = OrderPosition.objects.get(pk=self.result["position"]["id"])
|
||||
rule_data = LazyRuleVars(op, self.list, form.cleaned_data["datetime"], form.cleaned_data.get("gate"))
|
||||
rule_graph = _logic_annotate_for_graphic_explain(self.list.rules, op.subevent or self.list.event, rule_data,
|
||||
form.cleaned_data["datetime"])
|
||||
|
||||
@@ -513,7 +513,8 @@ class OrderDetail(OrderView):
|
||||
ctx['comment_form'] = CommentForm(initial={
|
||||
'comment': self.order.comment,
|
||||
'custom_followup_at': self.order.custom_followup_at,
|
||||
'checkin_attention': self.order.checkin_attention
|
||||
'checkin_attention': self.order.checkin_attention,
|
||||
'checkin_text': self.order.checkin_text,
|
||||
})
|
||||
ctx['display_locale'] = dict(settings.LANGUAGES)[self.object.locale or self.request.event.settings.locale]
|
||||
|
||||
@@ -747,7 +748,13 @@ class OrderComment(OrderView):
|
||||
self.order.log_action('pretix.event.order.checkin_attention', user=self.request.user, data={
|
||||
'new_value': form.cleaned_data.get('checkin_attention')
|
||||
})
|
||||
self.order.save(update_fields=['checkin_attention', 'comment', 'custom_followup_at'])
|
||||
|
||||
if form.cleaned_data.get('checkin_text') != self.order.checkin_text:
|
||||
self.order.checkin_text = form.cleaned_data.get('checkin_text')
|
||||
self.order.log_action('pretix.event.order.checkin_text', user=self.request.user, data={
|
||||
'new_value': form.cleaned_data.get('checkin_text')
|
||||
})
|
||||
self.order.save(update_fields=['checkin_attention', 'checkin_text', 'comment', 'custom_followup_at'])
|
||||
self.order.refresh_from_db()
|
||||
messages.success(self.request, _('The comment has been updated.'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user