diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-11-25 17:44:15 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-11-25 17:44:15 -0300 |
commit | 02cf96f1b5e1354971140ca1123ab3b404a83521 (patch) | |
tree | d2b84abdd68fa2bce85a5132e99751a29c4a95f6 | |
parent | 3d166b1b7c787ed9e2718151b67719eb93b889cc (diff) | |
download | askbot-02cf96f1b5e1354971140ca1123ab3b404a83521.tar.gz askbot-02cf96f1b5e1354971140ca1123ab3b404a83521.tar.bz2 askbot-02cf96f1b5e1354971140ca1123ab3b404a83521.zip |
fixed code formatting in askbot/forms.py
-rw-r--r-- | askbot/forms.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/askbot/forms.py b/askbot/forms.py index b36f0753..241a52f9 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -541,8 +541,15 @@ class NotARobotForm(forms.Form): class FeedbackForm(forms.Form): name = forms.CharField(label=_('Your name (optional):'), required=False) email = forms.EmailField(label=_('Email:'), required=False) - message = forms.CharField(label=_('Your message:'), max_length=800,widget=forms.Textarea(attrs={'cols':60})) - no_email = forms.BooleanField(label=_("I don't want to give my email:"), required=False) + message = forms.CharField( + label=_('Your message:'), + max_length=800, + widget=forms.Textarea(attrs={'cols':60}) + ) + no_email = forms.BooleanField( + label=_("I don't want to give my email or receive a response:"), + required=False + ) next = NextUrlField() def __init__(self, is_auth=False, *args, **kwargs): @@ -557,6 +564,7 @@ class FeedbackForm(forms.Form): private_key = askbot_settings.RECAPTCHA_SECRET, public_key = askbot_settings.RECAPTCHA_KEY ) + def clean(self): super(FeedbackForm, self).clean() if not self.is_auth: |