Skip to content

Commit

Permalink
Fix issue and allow tags to be saved while saving questions
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitjavalkar committed Mar 21, 2017
1 parent 49a4cba commit 4c0f45e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yaksh/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4c0f45e

Please sign in to comment.