+ temp_data = request.session.pop('temp_node_data', None)
+ if temp_data:
+ request.POST = temp_data
+ node_type = request.session.pop('temp_node_type')
+
+ if node_type == "question":
+ from forum.views.writers import ask
+ return ask(request)
+ elif node_type == "answer":
+ from forum.views.writers import answer
+ return answer(request, request.session.pop('temp_question_id'))