#33527: Remove unnecessary code in ModelAdmin._changeform_view().
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Mahdi
Type: | Shirani
Cleanup/optimization | Status: new
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution:
Keywords: modeladmin, | Triage Stage: Accepted
inlinemodel |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* stage: Unreviewed => Accepted
Comment:
Agreed, `if add else obj` is unnecessary. Maxim, would you like to prepare
a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/33527#comment:5>
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.8b567138e92cac0f756e778707df23e0%40djangoproject.com.