#32477: Wrapping of admin views does not preserve view attributes
-------------------------------+--------------------------------------
Reporter: Matt Pryor | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 3.1
Severity: Normal | Resolution: needsinfo
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 Nick Pope):
* status: new => closed
* resolution: => needsinfo
Comment:
It is unclear what your use case is for this change as you provide no
example of why you'd need to assign a custom attribute to a view.
The current implementation, wrapping the function, is intended to prevent
side effects of modifying the original function when assigning the
`.model_admin` or `.admin_site` attributes.
--
Ticket URL: <https://code.djangoproject.com/ticket/32477#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 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/071.2c9b799df82587fb80ac3ee91efd4985%40djangoproject.com.