allow supervisors to view shared exams
This commit is contained in:
+16
-5
@@ -44,9 +44,7 @@ urlpatterns = [
|
||||
),
|
||||
path(
|
||||
"supervisor-autocomplete",
|
||||
views.SupervisorAutocomplete.as_view(
|
||||
model=Supervisor
|
||||
),
|
||||
views.SupervisorAutocomplete.as_view(model=Supervisor),
|
||||
name="supervisor-autocomplete",
|
||||
),
|
||||
path(
|
||||
@@ -166,7 +164,11 @@ urlpatterns = [
|
||||
path("cids/<int:cid>/details", views.cid_details, name="cid_details"),
|
||||
path("cids/create/email", views.create_cid_email, name="create_cid_email"),
|
||||
path("supervisor", views.SupervisorList.as_view(), name="supervisor"),
|
||||
path("supervisor/request_account", views.supervisor_request_account, name="supervisor_request_account"),
|
||||
path(
|
||||
"supervisor/request_account",
|
||||
views.supervisor_request_account,
|
||||
name="supervisor_request_account",
|
||||
),
|
||||
path(
|
||||
"supervisor/<int:pk>/overview",
|
||||
views.supervisor_overview,
|
||||
@@ -225,6 +227,11 @@ urlpatterns = [
|
||||
views.ExamCollectionDelete.as_view(),
|
||||
name="examcollection_delete",
|
||||
),
|
||||
path(
|
||||
"share_with_supervisor_toggle/<int:pk>/",
|
||||
views.toggle_share_with_supervisor,
|
||||
name="toggle_share_with_supervisor",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@@ -380,7 +387,11 @@ def generic_exam_urls(generic_exam_view: GenericExamViews):
|
||||
),
|
||||
path("exam/", generic_exam_view.exam_list, name="exam_list"),
|
||||
path("exam/all", generic_exam_view.exam_list_all, name="exam_list_all"),
|
||||
path("exam/<int:exam_id>/order_questions", generic_exam_view.order_questions, name="order_questions"),
|
||||
path(
|
||||
"exam/<int:exam_id>/order_questions",
|
||||
generic_exam_view.order_questions,
|
||||
name="order_questions",
|
||||
),
|
||||
path("exam/<int:exam_id>/cids", generic_exam_view.exam_cids, name="exam_cids"),
|
||||
# path("exam/<int:exam_id>/groups", generic_exam_view.exam_groups_edit, name="exam_groups_edit"),
|
||||
path(
|
||||
|
||||
Reference in New Issue
Block a user