From 325bf8109e6f09c3d4ea45c2bbb60bd773587fcb Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 31 May 2011 01:38:32 -0400 Subject: added clear errors block in the ShowQuestionForm --- askbot/forms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/askbot/forms.py b/askbot/forms.py index 523c76a0..c5b1083e 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -259,6 +259,11 @@ class ShowQuestionForm(forms.Form): """this form must always be valid should use defaults if the data is incomplete or invalid""" + if self._errors: + #since the form is always valid, clear the errors + logging.error(str(self._errors)) + self._errors = {} + in_data = self.get_pruned_data() out_data = dict() if ('answer' in in_data) ^ ('comment' in in_data): -- cgit v1.2.3-1-g7c22