diff contact/forms.py @ 1070:6ac56115e0a8

Convert contact form & views to V3.
author Brian Neal <bgneal@gmail.com>
date Sat, 09 Apr 2016 17:15:32 -0500
parents 79a71b9d0a2a
children b957e4829a03
line wrap: on
line diff
--- a/contact/forms.py	Tue Apr 05 20:40:09 2016 -0500
+++ b/contact/forms.py	Sat Apr 09 17:15:32 2016 -0500
@@ -9,16 +9,13 @@
 
 class ContactForm(forms.Form):
     """Form used to contact the website admins"""
-    name=forms.CharField(label="Your Name", max_length=61,
-            widget=forms.TextInput(attrs={'size': 50 }))
-    email=forms.EmailField(label="Your Email",
-            widget=forms.TextInput(attrs={'size': 50 }))
-    subject=forms.CharField(max_length=64,
-            widget=forms.TextInput(attrs={'size': 50 }))
+    name=forms.CharField(label="Your Name")
+    email=forms.EmailField(label="Your Email")
+    subject=forms.CharField()
     honeypot=forms.CharField(max_length=64, required=False,
             label='If you enter anything in this field your message will be treated as spam')
     message=forms.CharField(label="Your Message",
-            widget=forms.Textarea(attrs={'rows': 16, 'cols': 50}),
+            widget=forms.Textarea(),
             max_length=3000)
 
     recipient_list = [mail_tuple[1] for mail_tuple in settings.MANAGERS]