summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorprathamesh2016-10-04 16:57:25 +0530
committerprathamesh2016-10-04 16:57:25 +0530
commitc5ae3d4589a71c3f3b9f622c7b67a04277269cde (patch)
tree78bd889cb40f647db6ba152063dce47ae7b8f430 /yaksh/urls.py
parent64bb8507cbfbaf8b4558926a0c3206eb85547ed1 (diff)
downloadonline_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.tar.gz
online_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.tar.bz2
online_test-c5ae3d4589a71c3f3b9f622c7b67a04277269cde.zip
Edit Question Paper Feature.
Can edit question paper. For creating new and editing existing question paper, same UI and view is used. Ajax previously used for creation is removed. Not necessary as post request handles the same. Removed unnecessary js.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index c4619b6..bb8cf2e 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -68,9 +68,10 @@ urlpatterns += [
url(r'^manage/user_data/(?P<user_id>\d+)/(?P<questionpaper_id>\d+)/$',
views.user_data),
url(r'^manage/user_data/(?P<user_id>\d+)/$', views.user_data),
- url(r'^manage/designquestionpaper/$', views.design_questionpaper, name='design_questionpaper'),
- url(r'^manage/designquestionpaper/(?P<questionpaper_id>\d+)/$',\
- views.design_questionpaper),
+ url(r'^manage/quiz/designquestionpaper/(?P<quiz_id>\d+)/$', views.design_questionpaper,
+ name='design_questionpaper'),
+ url(r'^manage/designquestionpaper/(?P<quiz_id>\d+)/(?P<questionpaper_id>\d+)/$',
+ views.design_questionpaper, name='designquestionpaper'),
url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/$',
views.show_statistics),
url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/(?P<attempt_number>\d+)/$',
@@ -87,7 +88,6 @@ urlpatterns += [
url(r'manage/enrolled/reject/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
views.reject, {'was_enrolled': True}),
url(r'manage/toggle_status/(?P<course_id>\d+)/$', views.toggle_course_status),
- url(r'^ajax/questionpaper/(?P<query>.+)/$', views.ajax_questionpaper),
url(r'^ajax/questions/filter/$', views.ajax_questions_filter),
url(r'^editprofile/$', views.edit_profile, name='edit_profile'),
url(r'^viewprofile/$', views.view_profile, name='view_profile'),