diff options
author | adityacp | 2020-09-07 12:53:08 +0530 |
---|---|---|
committer | adityacp | 2020-09-07 12:53:08 +0530 |
commit | 7e5608d0853d69358c14f9fb8fbd6465e21b8962 (patch) | |
tree | 949aeb4303f7cdd8cdd106977b0a06dcd6d5b8af /yaksh/urls.py | |
parent | d22930f72652b0b306dd491767e8368280bb8266 (diff) | |
download | online_test-7e5608d0853d69358c14f9fb8fbd6465e21b8962.tar.gz online_test-7e5608d0853d69358c14f9fb8fbd6465e21b8962.tar.bz2 online_test-7e5608d0853d69358c14f9fb8fbd6465e21b8962.zip |
Add edit and delete table of contents options
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 2c462b3..d7fd410 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -241,18 +241,13 @@ urlpatterns = [ name='add_marker'), path('manage/add/lesson/topic/<int:content_type>/<int:course_id>/<int:lesson_id>', views.add_topic, name='add_topic'), - path('manage/edit/lesson/topic/<int:content_type>/<int:course_id>/<int:lesson_id>/<int:topic_id>', - views.add_topic, name='edit_topic'), + path('manage/edit/lesson/topic/<int:content_type>/<int:course_id>/<int:lesson_id>/' + '<int:toc_id>/<int:topic_id>', views.add_topic, name='edit_topic'), path('manage/add/lesson/quiz/<int:content_type>/<int:course_id>/<int:lesson_id>', views.add_marker_quiz, name='add_marker_quiz'), - path('manage/edit/lesson/quiz/<int:content_type>/<int:course_id>/<int:lesson_id>/<int:question_id>', - views.add_marker_quiz, name='edit_marker_quiz'), - path('manage/add/lesson/exercise/<int:content_type>/<int:course_id>/<int:lesson_id>', - views.add_marker_quiz, name='add_marker_quiz'), - path('manage/edit/lesson/exercise/<int:content_type>/<int:course_id>/<int:lesson_id>/<int:question_id>', - views.add_marker_quiz, name='edit_marker_quiz'), - path('manage/add/lesson/poll/<int:content_type>/<int:course_id>/<int:lesson_id>', - views.add_marker_quiz, name='add_marker_quiz'), - path('manage/edit/lesson/poll/<int:content_type>/<int:course_id>/<int:lesson_id>/<int:question_id>', - views.add_marker_quiz, name='edit_marker_quiz') + path('manage/edit/lesson/quiz/<int:content_type>/<int:course_id>/<int:lesson_id>/' + '<int:toc_id>/<int:question_id>', views.add_marker_quiz, + name='edit_marker_quiz'), + path('manage/remove/lesson/toc/<int:course_id>/<int:toc_id>', + views.delete_toc, name='delete_toc'), ] |