#17380: Default value of ModelAdmin.inlines can be altered.
-------------------------------+--------------------------------------
Reporter: schinckel | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.3
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by carljm):
* status: new => closed
* resolution: => wontfix
Comment:
> I would say it's the expected behavior.
I agree. Mutating mutable objects mutates them. Class attributes that
aren't overridden by a subclass are still the superclass attribute. This
is just how Python works; I can't see what other behavior would be
expected, or what reasonable code would "fix" this. It would have to be a
class property, I think, which is quite unusual and just not worth it.
--
Ticket URL: <https://code.djangoproject.com/ticket/17380#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.