X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/fa5ec9e2a70331da5da884a13ff5b70bdc2eada6..8c29337f201187a1d8aa0110c9faf36b5d4f9219:/forum/views/readers.py diff --git a/forum/views/readers.py b/forum/views/readers.py index f8113be..e092922 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -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)