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)
|
||||
|
||||
Reference in New Issue
Block a user