summaryrefslogtreecommitdiff
path: root/yaksh/management/commands
diff options
context:
space:
mode:
authoradityacp2016-09-16 19:24:52 +0530
committeradityacp2016-09-16 19:24:52 +0530
commit671eaf98c8bfe38db19867e29e5047973099b1cf (patch)
tree4cd61e31d3a5bee043c40eeceed7f98b57f38ebd /yaksh/management/commands
parentb5f4917eac3d6d308479f94346262d5ce9cf78f3 (diff)
downloadonline_test-671eaf98c8bfe38db19867e29e5047973099b1cf.tar.gz
online_test-671eaf98c8bfe38db19867e29e5047973099b1cf.tar.bz2
online_test-671eaf98c8bfe38db19867e29e5047973099b1cf.zip
changed fixtures and views
Diffstat (limited to 'yaksh/management/commands')
-rw-r--r--yaksh/management/commands/create_demo_course.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/yaksh/management/commands/create_demo_course.py b/yaksh/management/commands/create_demo_course.py
index 9cb6058..ef3cb6b 100644
--- a/yaksh/management/commands/create_demo_course.py
+++ b/yaksh/management/commands/create_demo_course.py
@@ -16,7 +16,7 @@ def create_demo_course():
success = False
print("Creating Demo User...")
# create a demo user
- user, u_status = User.objects.get_or_create(username='demo_user',
+ user, u_status = User.objects.get_or_create(username='yaksh_demo_user',
email='demo@test.com')
user.set_password("demo")
user.save()
@@ -24,12 +24,12 @@ def create_demo_course():
institute='demo_institute',
department='demo_department',
position='Faculty')
- demo_user = User.objects.filter(username='demo_user')
+ demo_user = User.objects.filter(username='yaksh_demo_user')
add_to_group(demo_user)
print("Creating Demo Course...")
# create a demo course
- course, c_status = Course.objects.get_or_create(name="Demo_course",
+ course, c_status = Course.objects.get_or_create(name="Yaksh_Demo_course",
enrollment="open",
creator=user)
@@ -42,14 +42,14 @@ def create_demo_course():
duration=30, active=True,
attempts_allowed=-1,
time_between_attempts=0,
- description='Demo_quiz', pass_criteria=0,
+ description='Yaksh_Demo_quiz', pass_criteria=0,
language='Python', prerequisite=None,
course=course)
else:
print("Demo Quiz Already Created")
print("Creating Demo Questions...")
- questions = Question.objects.filter(active=True, summary="Demo Question")
+ questions = Question.objects.filter(active=True, summary="Yaksh Demo Question")
files = FileUpload.objects.filter(question__in=questions)
if not files:
#create demo question