--
Ticket URL: <https://code.djangoproject.com/ticket/28369>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:1>
* needs_docs: 0 => 1
* easy: 1 => 0
* needs_tests: 0 => 1
Comment:
I [https://groups.google.com/d/topic/django-
developers/479TIjEk1_g/discussion lamented on django-developers] about the
never ending number of `ModelAdmin` hooks. I fear we'll end up with an
unmaintainable mess if we make every little thing customizable. Those
methods would also need to be documented and tested. Perhaps you could
describe your use case in more detail to help justify the additional
complexity.
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:2>
Comment (by steve yeago):
Well in some ways I think the patch creates some consistency given that
there is already a hook for the "view on site" url in the admin. Grepping
around, there could be some savings of lines get_*_url in the tests where
basically the same hooks already exists.
Example: http://dpaste.com/1JFCGQG
The current implementation presumes that a modeladmin is registered under
a namespace with no other args or kwargs, but that may not be the case if
someone has included additional url args in get_urls(). Almost everything
about the admin works fine out of the box in this situation aside from the
somewhat superficial problem of where the user is redirect post-save
because, the urls that are being reversed deep in response_change (and
subsequently response_post_save_change) are hard-coded.
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:3>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:4>
Comment (by steve yeago):
my patch is ready
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:5>
Comment (by Tim Graham):
The patch still lacks documentation of the new `ModelAdmin` methods. You
should update the ticket's flags as indicated in the "According to the
ticket's flags, the next step(s) to move this issue forward are:" box
below the ticket description.
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:6>
* cc: Christophe Baldy (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:7>
* owner: nobody => Abhishek Bera
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28369#comment:8>