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