summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index bdb6f49..2adc2c3 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -183,6 +183,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()