forked from CGM_Public/pretix_original
Register missing LogEntryTypes (#4779)
This commit is contained in:
@@ -351,6 +351,7 @@ class CheckinErrorLogEntryType(OrderLogEntryType):
|
|||||||
return str(plain_without_dt).format_map(data)
|
return str(plain_without_dt).format_map(data)
|
||||||
|
|
||||||
|
|
||||||
|
@log_entry_types.new('pretix.event.checkin')
|
||||||
class CheckinLogEntryType(CheckinErrorLogEntryType):
|
class CheckinLogEntryType(CheckinErrorLogEntryType):
|
||||||
def display(self, logentry: LogEntry, data):
|
def display(self, logentry: LogEntry, data):
|
||||||
if data.get('type') == Checkin.TYPE_EXIT:
|
if data.get('type') == Checkin.TYPE_EXIT:
|
||||||
@@ -377,6 +378,7 @@ class CheckinLogEntryType(CheckinErrorLogEntryType):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@log_entry_types.new()
|
||||||
class OrderConsentLogEntryType(OrderLogEntryType):
|
class OrderConsentLogEntryType(OrderLogEntryType):
|
||||||
action_type = 'pretix.event.order.consent'
|
action_type = 'pretix.event.order.consent'
|
||||||
|
|
||||||
@@ -386,6 +388,7 @@ class OrderConsentLogEntryType(OrderLogEntryType):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@log_entry_types.new()
|
||||||
class OrderCanceledLogEntryType(OrderLogEntryType):
|
class OrderCanceledLogEntryType(OrderLogEntryType):
|
||||||
action_type = 'pretix.event.order.canceled'
|
action_type = 'pretix.event.order.canceled'
|
||||||
|
|
||||||
@@ -397,6 +400,7 @@ class OrderCanceledLogEntryType(OrderLogEntryType):
|
|||||||
return _('The order has been canceled.')
|
return _('The order has been canceled.')
|
||||||
|
|
||||||
|
|
||||||
|
@log_entry_types.new()
|
||||||
class OrderPrintLogEntryType(OrderLogEntryType):
|
class OrderPrintLogEntryType(OrderLogEntryType):
|
||||||
action_type = 'pretix.event.order.print'
|
action_type = 'pretix.event.order.print'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user