summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authoradityacp2018-01-16 16:23:42 +0530
committeradityacp2018-01-16 16:23:42 +0530
commit67d4f84d3274ffce449073d1209f29943cfccf06 (patch)
treeb764c59efbcc7a54095dcbd2dbdd1656446d8b94 /yaksh/urls.py
parent1445358b4ee548edd16a8d42026b080b7d92a0c4 (diff)
downloadonline_test-67d4f84d3274ffce449073d1209f29943cfccf06.tar.gz
online_test-67d4f84d3274ffce449073d1209f29943cfccf06.tar.bz2
online_test-67d4f84d3274ffce449073d1209f29943cfccf06.zip
Change template, urls.py, views.py
- Change show_video.html to empty module - Add condition to check if module is completed for the corresponding unit
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index d60a5d3..7eca5af 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -40,6 +40,8 @@ urlpatterns = [
views.view_module, name='view_module'),
url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/(?P<current_unit_id>\d+)/$',
views.get_next_unit, name='next_unit'),
+ url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
+ views.get_next_unit, name='next_unit'),
url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/(?P<current_unit_id>\d+)/(?P<first_unit>\d+)/$',
views.get_next_unit, name='next_unit'),
url(r'^course_modules/(?P<course_id>\d+)/$',