improve exam collections
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user