Include comment field in OrderDetail view

This commit is contained in:
Tobias Kunze
2016-08-12 11:33:08 +02:00
parent 3eb581e55a
commit 6fcf393aba
6 changed files with 55 additions and 1 deletions

View File

@@ -23,3 +23,15 @@ class ExporterForm(forms.Form):
data[k] = [m.pk for m in v]
return data
class CommentForm(I18nModelForm):
class Meta:
model = Order
fields = ['comment']
widgets = {
'comment': forms.Textarea(attrs={
'rows': 3,
'class': 'helper-width-100',
}),
}