.
This commit is contained in:
@@ -47,6 +47,14 @@ class SeriesFindingForm(ModelForm):
|
||||
# The widget for a ModelMultipleChoiceField expects
|
||||
# a list of primary key for the selected data.
|
||||
initial["series"] = kwargs.pop("series_id")
|
||||
#elif kwargs.get("instance"):
|
||||
# # We get the 'initial' keyword argument or initialize it
|
||||
# # as a dict if it didn't exist.
|
||||
# initial = kwargs.setdefault("initial", {})
|
||||
# # The widget for a ModelMultipleChoiceField expects
|
||||
# # a list of primary key for the selected data.
|
||||
# #initial["structures"] = [t.pk for t in kwargs["structures"].case.all()]
|
||||
# #initial["structures"] = [t.pk for t in kwargs["structures"].case.all()]
|
||||
|
||||
super(SeriesFindingForm, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user