From 8e29519f3518a13ad6f378f5f7036bee580f6f10 Mon Sep 17 00:00:00 2001 From: lxf Date: Thu, 28 Oct 2021 21:37:19 -0400 Subject: lttr: put finishing touches on postcard form --- app/lttr/forms.py | 3 +++ app/lttr/templates/lttr/postcard_subscribe.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'app/lttr') diff --git a/app/lttr/forms.py b/app/lttr/forms.py index 5718d6e..39c4db2 100644 --- a/app/lttr/forms.py +++ b/app/lttr/forms.py @@ -105,3 +105,6 @@ class PostcardForm(forms.ModelForm): class Meta: model = PostcardSubscriber fields = ['name', 'address'] + widgets = { + 'address': forms.Textarea(attrs={'rows':3, 'cols':40}), + } diff --git a/app/lttr/templates/lttr/postcard_subscribe.html b/app/lttr/templates/lttr/postcard_subscribe.html index 4d917dc..71b19b0 100644 --- a/app/lttr/templates/lttr/postcard_subscribe.html +++ b/app/lttr/templates/lttr/postcard_subscribe.html @@ -14,7 +14,7 @@ -
{% csrf_token %} + {% csrf_token %} {% for field in form %}
{{field.label_tag}} -- cgit v1.2.3-70-g09d2