more collection stuff

This commit is contained in:
Ross
2024-12-16 18:20:23 +00:00
parent 7da968825c
commit 267f53906e
3 changed files with 16 additions and 1 deletions
@@ -3,6 +3,12 @@
{% include 'exam_notes.html' %}
{% if exam.examcollection %}
<div>This exam is part of the collection: <a href="{{ exam.examcollection.get_absolute_url }}">{{ exam.examcollection }}</a></div>
{% endif %}
{% if exam.recreate_json %}
<div class="alert alert-warning" role="alert">
Exam JSON may be out of date.
+9
View File
@@ -104,6 +104,13 @@ MIDDLEWARE = [
ROOT_URLCONF = "rad.urls"
default_loaders = [
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
]
cached_loaders = [("django.template.loaders.cached.Loader", default_loaders)]
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
@@ -117,7 +124,9 @@ TEMPLATES = [
"django.contrib.messages.context_processors.messages",
"django.template.context_processors.static",
],
"loaders": default_loaders if DEBUG else cached_loaders,
},
},
]
+1 -1
View File
@@ -13,7 +13,7 @@
<h2>Cloning Exam: {{exam}}</h2>
<p>
This will create a new exam with the same settings, questions and answers as the original exam. <br/>
This will create a new exam with the same settings, authors, questions and answers as the original exam. <br/>
Candidate groups and candidates will not be cloned.
</p>
<form action="" method="post">