]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Fixing OSQA 244, Cannot answer question if not enough text.
[osqa.git] / forum / views / readers.py
index 3efb554544ce8c3bbf2706064931c24017872464..9eea9787191bb24472cd4ef6410f77649b52a6c2 100644 (file)
@@ -234,7 +234,11 @@ def question(request, id, slug):
     if question.deleted and not request.user.can_view_deleted_post(question):
         raise Http404
 
-    answer_form = AnswerForm(question)
+    if request.POST:
+        answer_form = AnswerForm(question, request.POST)
+    else:
+        answer_form = AnswerForm(question)
+
     answers = request.user.get_visible_answers(question)
 
     if answers is not None: