.
This commit is contained in:
@@ -51,6 +51,7 @@ urlpatterns = [
|
||||
name="exam_answers_submit",
|
||||
),
|
||||
path("exam/", views.GenericExamViews.exam_list, name="exam_list"),
|
||||
path("exam/all", views.GenericExamViews.exam_list_all, name="exam_list_all"),
|
||||
path("exam/available", views.active_exams, name="active_exams"),
|
||||
# path("exam/json/<int:pk>", views.exam_json, name="exam_json"),
|
||||
# path("exam/json/<int:pk>/recreate", views.exam_json_recreate, name="exam_json_recreate"),
|
||||
|
||||
@@ -75,6 +75,7 @@ def question_detail(request, pk):
|
||||
return render(request, "physics/question_detail.html", {"question": question})
|
||||
|
||||
|
||||
@login_required
|
||||
def active_exams(request):
|
||||
exams = Exam.objects.all()
|
||||
print(exams)
|
||||
|
||||
Reference in New Issue
Block a user