Change description to CharField and set its height
This commit is contained in:
parent
730492089b
commit
c7edcdc8b1
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ class GenericPaymentForm(forms.Form):
|
||||||
decimal_places=2,
|
decimal_places=2,
|
||||||
min_value=1)
|
min_value=1)
|
||||||
recurring = forms.BooleanField()
|
recurring = forms.BooleanField()
|
||||||
description = forms.Textarea()
|
description = forms.CharField(
|
||||||
|
widget=forms.Textarea(attrs={'style': "height: 150px;"})
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
fields = ['amount', 'recurring', 'description']
|
fields = ['amount', 'recurring', 'description']
|
||||||
|
|
Loading…
Reference in a new issue