From 4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 21 Mar 2017 15:50:50 +0530 Subject: Fix issue and allow tags to be saved while saving questions --- yaksh/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaksh/views.py b/yaksh/views.py index 83749c1..de2aac6 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -181,6 +181,8 @@ def add_question(request, question_id=None): question = qform.save(commit=False) question.user = user question.save() + # many-to-many field save function used to save the tags + qform.save_m2m() for formset in formsets: if formset.is_valid(): formset.save() -- cgit