This commit is contained in:
Ross
2025-04-07 13:25:46 +01:00
parent dd334c6d6d
commit 5d37cf4284
7 changed files with 28 additions and 28 deletions
+1
View File
@@ -280,6 +280,7 @@ def generic_view_urls(generic_views: GenericViewBase):
generic_views.question_review,
name="question_review",
),
path("help", generic_views.help, name="help"),
]
return urlpatterns
+3
View File
@@ -2609,6 +2609,9 @@ class GenericViewBase:
self.checker_group = g[app_name]
def help(self, request):
return render(request, f"{self.app_name}/help.html", {"app_name": self.app_name})
def question_review(self, request, pk):
"""
Return a json representation of the question when the exam is published