#33527: remove unnecessary code from patch before in ModelAdmin inlines save.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: shirani98
Type: | Status: closed
Cleanup/optimization |
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution: fixed
Keywords: modeladmin, | Triage Stage:
inlinemodel | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by shirani98):
* status: assigned => closed
* resolution: => fixed
Comment:
def get(self, request,obj):
form = ModelForm(request.POST, request.FILES, instance=obj)
if form.instance :
formsets, inline_instances = self._create_formsets(request,
form.instance, change=not add)
elif obj :
formsets, inline_instances = self._create_formsets(request, obj,
change=not add)
--
Ticket URL: <https://code.djangoproject.com/ticket/33527#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.11cb888b156b112755e8570532acbe3c%40djangoproject.com.