#9749: ModelAdmin should allow specifying Changelist class to further modify
Changelist behavior
-------------------------------------------+--------------------------------
Reporter: anonymous | Owner: brosner
Status: new | Milestone: 1.2
Component: django.contrib.admin | Version: 1.0
Resolution: | Keywords: ModelAdmin
Changelist subclass
Stage: Ready for checkin | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by floguy):
* cc: [email protected] (added)
Comment:
I've approached this in a slightly different way. My way involves
mimicking the way some of the other methods on the ModelAdmin class works
(get_form, etc) by implementing a method to provide the class. This way
is slightly more flexible due to the availability of more information
(like everything from the request). I hope this patch makes it in,
because right now trying to just slightly change behavior involves a whole
lot of copy/paste.
I understand one concern with this is that it could make ChangeList a more
public API, but it's still really not. For example, it's still not
documented. But it does give greater flexibility at a per-request level,
and that's what I'm after.
--
Ticket URL: <http://code.djangoproject.com/ticket/9749#comment:17>
Django <http://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.