diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-09-07 12:10:32 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-09-07 12:10:32 -0600 |
commit | 38f7631b55da2401de73ccec8b3e2425e4b21377 (patch) | |
tree | 6a651607b5a2a42b3ad53dd8e53993002e7f5bc3 /askbot/forms.py | |
parent | 7a529933b5dc593261c458b9761c183fe3b39de6 (diff) | |
download | askbot-38f7631b55da2401de73ccec8b3e2425e4b21377.tar.gz askbot-38f7631b55da2401de73ccec8b3e2425e4b21377.tar.bz2 askbot-38f7631b55da2401de73ccec8b3e2425e4b21377.zip |
fixed bug in widget creation
Diffstat (limited to 'askbot/forms.py')
-rw-r--r-- | askbot/forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/forms.py b/askbot/forms.py index 38ba73fa..b720ad77 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -919,7 +919,9 @@ class AskWidgetForm(forms.Form, FormWithHideableFields): self.fields['text'] = QuestionEditorField() if not include_text: self.hide_field('text') - self.fields['text'].required=False + #hack to make it validate + self.fields['text'].required = False + self.fields['text'].min_length = 0 class CreateAskWidgetForm(forms.Form, FormWithHideableFields): title = forms.CharField(max_length=100) |