diff options
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 7cf3bf7..2c462b3 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -239,16 +239,20 @@ urlpatterns = [ name="mark_notification"), path('manage/add/marker/<int:course_id>/<int:lesson_id>', views.add_marker, name='add_marker'), - path('manage/add/topic/<int:course_id>/<int:lesson_id>', views.add_topic, - name='add_topic'), - path('manage/edit/topic/<int:course_id>/<int:lesson_id>/<int:topic_id>', + 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/add/quiz/<int:course_id>/<int:lesson_id>', + 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/quiz/<int:course_id>/<int:lesson_id>/<int:quiz_id>/<int:question_id>', + 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/exercise/<int:course_id>/<int:lesson_id>', - views.add_marker_quiz, name='add_marker_exercise'), - path('manage/edit/exercise/<int:course_id>/<int:lesson_id>/<int:quiz_id>/<int:question_id>', - views.add_marker_quiz, name='edit_marker_exercise') + 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') ] |