Change description to CharField and set its height

This commit is contained in:
PCoder 2018-09-22 23:51:39 +02:00
parent 730492089b
commit c7edcdc8b1

View file

@ -58,7 +58,9 @@ class GenericPaymentForm(forms.Form):
decimal_places=2,
min_value=1)
recurring = forms.BooleanField()
description = forms.Textarea()
description = forms.CharField(
widget=forms.Textarea(attrs={'style': "height: 150px;"})
)
class Meta:
fields = ['amount', 'recurring', 'description']