mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Web-based check-in interface (#1985)
This commit is contained in:
@@ -1134,6 +1134,13 @@ class TicketSettingsForm(SettingsForm):
|
||||
|
||||
|
||||
class CommentForm(I18nModelForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.readonly = kwargs.pop('readonly')
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.readonly:
|
||||
self.fields['comment'].widget.attrs['readonly'] = 'readonly'
|
||||
|
||||
class Meta:
|
||||
model = Event
|
||||
fields = ['comment']
|
||||
|
||||
Reference in New Issue
Block a user