diff options
Diffstat (limited to 'testapp/exam/management')
-rw-r--r-- | testapp/exam/management/commands/load_exam.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testapp/exam/management/commands/load_exam.py b/testapp/exam/management/commands/load_exam.py index 3f247a1..e3f72da 100644 --- a/testapp/exam/management/commands/load_exam.py +++ b/testapp/exam/management/commands/load_exam.py @@ -32,7 +32,9 @@ def load_exam(filename): raise NameError(msg) for question in questions: - question.save() + question[0].save() + for tag in question[1]: + question[0].tags.add(tag) if 'quiz' in locals(): quiz.save() |