.
This commit is contained in:
@@ -51,6 +51,7 @@ class NoteForm(ModelForm):
|
||||
fields = ["note"]
|
||||
|
||||
|
||||
|
||||
class LongCreationDefaultForm(ModelForm):
|
||||
class Meta:
|
||||
model = LongCreationDefault
|
||||
@@ -59,11 +60,13 @@ class LongCreationDefaultForm(ModelForm):
|
||||
|
||||
class LongSeriesForm(ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(LongSeriesForm, self).__init__(*args, **kwargs)
|
||||
self.fields["examination"] = ModelMultipleChoiceField(
|
||||
queryset=Examination.objects.all(),
|
||||
widget=FilteredSelectMultiple(verbose_name="Examination", is_stacked=False),
|
||||
)
|
||||
|
||||
|
||||
class Meta:
|
||||
model = LongSeries
|
||||
exclude = []
|
||||
|
||||
Reference in New Issue
Block a user