mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add internal comment to events
This commit is contained in:
@@ -697,3 +697,15 @@ class TicketSettingsForm(SettingsForm):
|
||||
val = cleaned_data.get(k)
|
||||
if v._required and (val is None or val == ""):
|
||||
self.add_error(k, _('This field is required.'))
|
||||
|
||||
|
||||
class CommentForm(I18nModelForm):
|
||||
class Meta:
|
||||
model = Event
|
||||
fields = ['comment']
|
||||
widgets = {
|
||||
'comment': forms.Textarea(attrs={
|
||||
'rows': 3,
|
||||
'class': 'helper-width-100',
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user