improve exam collections

This commit is contained in:
Ross
2024-12-16 17:57:53 +00:00
parent 1c5f3a3425
commit 12144e06d1
3 changed files with 15 additions and 2 deletions
+5
View File
@@ -771,6 +771,11 @@ class ExamCollectionForm(ModelForm):
widget=FilteredSelectMultiple(verbose_name=name, is_stacked=False),
)
self.fields["author"] = ModelMultipleChoiceField(
queryset=User.objects.all(),
widget=FilteredSelectMultiple(verbose_name="Authors", is_stacked=False), required=False,
)
def save(self, commit=True):
# Get the unsaved Long instance
instance = ModelForm.save(self, False)
@@ -10,7 +10,9 @@
<a href="{% url 'generic:examcollection_delete' object.pk %}">Delete</a>
</p>
This collection contains the following exams
<div>Authors: {{ object.get_authors }}</div>
<p>This collection contains the following exams<p>