diff options
author | adityacp | 2020-09-03 18:18:18 +0530 |
---|---|---|
committer | adityacp | 2020-09-03 18:18:18 +0530 |
commit | 23c6caab733f5bba6458a07a6666a0580ee2e6a9 (patch) | |
tree | 36a9f3d185e6106f30d50c1ff07b0744afd87943 /yaksh/urls.py | |
parent | 4183028cc7005cd46c8ccff2793030d736e232d7 (diff) | |
download | online_test-23c6caab733f5bba6458a07a6666a0580ee2e6a9.tar.gz online_test-23c6caab733f5bba6458a07a6666a0580ee2e6a9.tar.bz2 online_test-23c6caab733f5bba6458a07a6666a0580ee2e6a9.zip |
Change views, forms, models, urls
- Disable the question type in video question form
- Change urls to add graded quiz, exercise, poll type question
- Save the topic and question in table of contents
- Rename lesson attribute in TableOfContents model
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') ] |