Add internal comment to events

This commit is contained in:
Raphael Michel
2017-07-07 11:27:59 +02:00
parent 6e65ae5306
commit 35979ed332
10 changed files with 118 additions and 10 deletions

View File

@@ -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',
}),
}