summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2017-03-21 15:50:50 +0530
committerankitjavalkar2017-03-21 17:17:17 +0530
commit4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03 (patch)
treeb43fbc06b63608087357bc5b4bac5c4042929061
parent49a4cbac480f8a9e3fafcd50e6ce2fa41a5d8699 (diff)
downloadonline_test-4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03.tar.gz
online_test-4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03.tar.bz2
online_test-4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03.zip
Fix issue and allow tags to be saved while saving questions
-rw-r--r--yaksh/views.py2
1 files changed, 2 insertions, 0 deletions
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()