Fixed #33527 -- Removed unnecessary code in ModelAdmin._changeform_view().
Co-authored-by: Daulet1 <d.abduali@thefactory.kz>
This commit is contained in:
parent
c1d168be0f
commit
e0442a628e
|
@ -1787,7 +1787,7 @@ class ModelAdmin(BaseModelAdmin):
|
|||
form = ModelForm(request.POST, request.FILES, instance=obj)
|
||||
formsets, inline_instances = self._create_formsets(
|
||||
request,
|
||||
form.instance if add else obj,
|
||||
form.instance,
|
||||
change=not add,
|
||||
)
|
||||
form_validated = form.is_valid()
|
||||
|
|
Loading…
Reference in New Issue