summaryrefslogtreecommitdiff
path: root/exam
diff options
context:
space:
mode:
Diffstat (limited to 'exam')
-rw-r--r--exam/management/commands/load_questions_xml.py (renamed from exam/management/commands/load_questions.py)4
1 files changed, 2 insertions, 2 deletions
diff --git a/exam/management/commands/load_questions.py b/exam/management/commands/load_questions_xml.py
index 336ed92..1e9cfde 100644
--- a/exam/management/commands/load_questions.py
+++ b/exam/management/commands/load_questions_xml.py
@@ -22,7 +22,7 @@ def clear_questions():
for question in Question.objects.all():
question.delete()
-def load_questions(filename):
+def load_questions_xml(filename):
"""Load questions from the given XML file."""
q_bank = parse(filename).getElementsByTagName("question")
@@ -59,6 +59,6 @@ class Command(BaseCommand):
# Load from files.
for fname in args:
self.stdout.write('Importing from {0} ... '.format(basename(fname)))
- load_questions(fname)
+ load_questions_xml(fname)
self.stdout.write('Done\n')