.
This commit is contained in:
@@ -984,6 +984,13 @@ class AnatomyQuestionView(LoginRequiredMixin, SingleTableMixin, FilterView):
|
|||||||
|
|
||||||
filterset_class = AnatomyQuestionFilter
|
filterset_class = AnatomyQuestionFilter
|
||||||
|
|
||||||
|
#def get_queryset(self):
|
||||||
|
# qs = super().get_queryset()
|
||||||
|
|
||||||
|
# qs = qs.select_related('modality', 'question_type')
|
||||||
|
|
||||||
|
# return qs
|
||||||
|
|
||||||
|
|
||||||
@user_is_author_or_anatomy_checker
|
@user_is_author_or_anatomy_checker
|
||||||
def question_save_annotation(request, pk):
|
def question_save_annotation(request, pk):
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ urlpatterns = [
|
|||||||
name="exam_answers_submit",
|
name="exam_answers_submit",
|
||||||
),
|
),
|
||||||
path("exam/", views.GenericExamViews.exam_list, name="exam_list"),
|
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/available", views.active_exams, name="active_exams"),
|
||||||
# path("exam/json/<int:pk>", views.exam_json, name="exam_json"),
|
# 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"),
|
# 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})
|
return render(request, "physics/question_detail.html", {"question": question})
|
||||||
|
|
||||||
|
|
||||||
|
@login_required
|
||||||
def active_exams(request):
|
def active_exams(request):
|
||||||
exams = Exam.objects.all()
|
exams = Exam.objects.all()
|
||||||
print(exams)
|
print(exams)
|
||||||
|
|||||||
Reference in New Issue
Block a user