]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Previous feature addition commit introduced errors; rolling back to previous revision...
[osqa.git] / forum / views / readers.py
index f8113be2f6da4e091d9fc8ad39830794bfbafa4e..e0929220b6b0dfa5d9f3a1967d71b0b18ba42b45 100644 (file)
@@ -314,9 +314,9 @@ def question(request, id, slug='', answer=None):
         return HttpResponsePermanentRedirect(question.get_absolute_url())
 
     if request.POST:
-        answer_form = AnswerForm(request.POST, user=request.user)
+        answer_form = AnswerForm(question, request.POST)
     else:
-        answer_form = AnswerForm(user=request.user)
+        answer_form = AnswerForm(question)
 
     answers = request.user.get_visible_answers(question)