From e69b7bffb7a21ebd6468ae77ad462c7b85184f1a Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 23 Nov 2017 10:46:00 +0530 Subject: Change urls, views, template, test_views - Fix view answer paper for student - Fix existing views test cases --- yaksh/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index 8348666..4cbb087 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -32,7 +32,8 @@ urlpatterns = [ views.skip), url(r'^enroll_request/(?P\d+)/$', views.enroll_request, name='enroll_request'), url(r'^self_enroll/(?P\d+)/$', views.self_enroll, name='self_enroll'), - url(r'^view_answerpaper/(?P\d+)/$', views.view_answerpaper, name='view_answerpaper'), + url(r'^view_answerpaper/(?P\d+)/(?P\d+)$', + views.view_answerpaper, name='view_answerpaper'), url(r'^show_video/(?P\d+)/(?P\d+)/(?P\d+)/$', views.show_video, name='show_video'), url(r'^quizzes/view_module/(?P\d+)/(?P\d+)/$', -- cgit From 9ea1d9e02f9395815669f3ab5f8c2e5cae768247 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 28 Nov 2017 12:29:50 +0530 Subject: Change in views.py and urls.py - Change view function name from show_video to show_lesson - Change add quiz, lesson, module view function --- yaksh/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index 4cbb087..dada74f 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -34,8 +34,8 @@ urlpatterns = [ url(r'^self_enroll/(?P\d+)/$', views.self_enroll, name='self_enroll'), url(r'^view_answerpaper/(?P\d+)/(?P\d+)$', views.view_answerpaper, name='view_answerpaper'), - url(r'^show_video/(?P\d+)/(?P\d+)/(?P\d+)/$', - views.show_video, name='show_video'), + url(r'^show_lesson/(?P\d+)/(?P\d+)/(?P\d+)/$', + views.show_lesson, name='show_lesson'), url(r'^quizzes/view_module/(?P\d+)/(?P\d+)/$', views.view_module, name='view_module'), url(r'^next_unit/(?P\d+)/(?P\d+)/(?P\d+)/$', -- cgit