Opened 12 years ago
Last modified 8 years ago
#18914 new New feature
Add a way to add items to the admin's object tools using Python code
Reported by: | Mike Crute | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | admin object-tools |
Cc: | marc.tamlyn@…, markus.magnuson@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Adding object tools requires template overrides or subclassing of ModelAdmin. It should be possible to add object tools in the same way that admin actions can be defined.
Change History (6)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Cc: | added |
---|---|
Needs tests: | set |
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
Type: | Cleanup/optimization → New feature |
I like the idea - I definitely think this is something the admin could do with making easier to customise (having hacked it a few times...)
It needs tests, as it currently has none. It'll probably need quite a lot - all of the individual functions will need testing. Does the test suite still work with the current changes? Docs wise it has some, but they if merged it would need to be added to the release notes as well.
Seems to me the view on site link should also be converted to be one of these new tool objects.
comment:4 by , 9 years ago
Summary: | Object tools improvements → Add a way to add items to the admin's object tools using Python code |
---|
#25776 is a duplicate.
follow-up: 6 comment:5 by , 9 years ago
Nice, also see this project solving the issue: https://github.com/praekelt/django-object-tools
comment:6 by , 9 years ago
Replying to manelclos:
Nice, also see this project solving the issue: https://github.com/praekelt/django-object-tools
are you planning to work on this ticket?
comment:7 by , 9 years ago
Cc: | added |
---|
There is a patch for this with documentation on GitHub https://github.com/django/django/pull/328