From c7edcdc8b18d1b06721da15f3a929b41da59693b Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 22 Sep 2018 23:51:39 +0200 Subject: [PATCH] Change description to CharField and set its height --- hosting/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosting/forms.py b/hosting/forms.py index bbfda8b8..a593e906 100644 --- a/hosting/forms.py +++ b/hosting/forms.py @@ -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']