summaryrefslogtreecommitdiffstats
path: root/askbot/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/forms.py')
-rw-r--r--askbot/forms.py5
1 files changed, 5 insertions, 0 deletions
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):