summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authoradityacp2018-02-20 11:43:50 +0530
committeradityacp2018-02-20 11:43:50 +0530
commit5a2ed309ff2f5f70571240b551978e25e51cd51f (patch)
tree8b044694191365a13234a5b1af76a5db4bbce576 /yaksh/urls.py
parentb78b5d0b46114caefca35e82c502d1f7598e8e59 (diff)
downloadonline_test-5a2ed309ff2f5f70571240b551978e25e51cd51f.tar.gz
online_test-5a2ed309ff2f5f70571240b551978e25e51cd51f.tar.bz2
online_test-5a2ed309ff2f5f70571240b551978e25e51cd51f.zip
Change in models.py, views.py and ursl.py
- Change urls to take two types of course clone - Change view duplicate_course to copy or clone depending on type - Change view function prof_manage to avoid error while deleting trial answerpapers - Add new model methods for course, module, unit, lesson and quiz to create copies
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 08c2091..b1e6249 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -86,8 +86,8 @@ urlpatterns = [
views.show_statistics, name="show_statistics"),
url(r'^manage/download_quiz_csv/(?P<course_id>\d+)/(?P<quiz_id>\d+)/$',
views.download_quiz_csv, name="download_quiz_csv"),
- url(r'^manage/duplicate_course/(?P<course_id>\d+)/$', views.duplicate_course,
- name='duplicate_course'),
+ url(r'^manage/duplicate_course/(?P<copy_type>copy|clone)/(?P<course_id>\d+)/$',
+ views.duplicate_course, name='duplicate_course'),
url(r'manage/courses/$', views.courses, name='courses'),
url(r'manage/add_course/$', views.add_course, name='add_course'),
url(r'manage/edit_course/(?P<course_id>\d+)$', views.add_course, name='edit_course'),