summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorprathamesh2018-01-02 16:46:52 +0530
committerprathamesh2018-01-02 16:46:52 +0530
commite14514e01052fb36cd9f14675cbe7ca940945a34 (patch)
tree994f3d5dd6d8c4f3614d3b1a655c91caa7426dcf /yaksh/urls.py
parent7fe8e17438b8e67e7290f11ddcd29cda3953921b (diff)
downloadonline_test-e14514e01052fb36cd9f14675cbe7ca940945a34.tar.gz
online_test-e14514e01052fb36cd9f14675cbe7ca940945a34.tar.bz2
online_test-e14514e01052fb36cd9f14675cbe7ca940945a34.zip
Allowed user to skip and view solution if the answer is correct.
Added solution attribute to the Question model.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index f7df456..b4bbb41 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -51,7 +51,9 @@ urlpatterns = [
url(r'^manage/addquiz/$', views.add_quiz, name='add_quiz'),
url(r'^manage/add_exercise/$', views.add_exercise, name='add_exercise'),
url(r'^manage/add_exercise/(?P<quiz_id>\d+)/$', views.add_exercise,
- name='add_exercise'),
+ name='edit_exercise'),
+ url(r'^manage/add_exercise/(?P<quiz_id>\d+)/(?P<course_id>\d+)/$',
+ views.add_exercise, name='edit_exercise'),
url(r'^manage/addquiz/(?P<quiz_id>\d+)/$',
views.add_quiz, name='edit_quiz'),
url(r'^manage/addquiz/(?P<quiz_id>\d+)/(?P<course_id>\d+)$',