summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2020-02-19 11:09:16 +0530
committeradityacp2020-02-19 11:09:16 +0530
commitf2d1d8fe76109a5b7c53e68de2bd86230874ba90 (patch)
tree3ca8304202935ae260022aea8a216554365ded08 /yaksh/views.py
parent4583cdbe0f19c9b133fd2614ec8077fc972182fb (diff)
downloadonline_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.tar.gz
online_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.tar.bz2
online_test-f2d1d8fe76109a5b7c53e68de2bd86230874ba90.zip
Change views, test_views, templates
- Change message text in duplicate course view function - Remove clone course option from course detail page and show it in courses page - Show download course option in courses page - Show message for search results in student dashboard - Fix views tests - Show collapse requested students list
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 59efc59..0ae4a14 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -174,7 +174,7 @@ def quizlist_user(request, enrolled=None, msg=None):
course_code = request.POST.get('course_code')
hidden_courses = Course.objects.get_hidden_courses(code=course_code)
courses = hidden_courses
- title = 'Search'
+ title = 'Search Results'
else:
courses = list(Course.objects.filter(
active=True, is_trial=False,
@@ -2425,8 +2425,9 @@ def duplicate_course(request, course_id):
duplicate_course = course.create_duplicate_course(user)
msg = dedent(
'''\
- Course duplication successful with the name {0} , please check
- the courses page.'''.format(duplicate_course.name)
+ Course duplication successful with the name {0}'''.format(
+ duplicate_course.name
+ )
)
messages.success(request, msg)
else:
@@ -2436,7 +2437,7 @@ def duplicate_course(request, course_id):
your instructor/administrator.'''.format(course.name)
)
messages.warning(request, msg)
- return my_redirect(reverse('yaksh:course_detail', args=[course_id]))
+ return my_redirect(reverse('yaksh:courses'))
@login_required