`get_deleted_objects` causes an error if there is no change view.
|Reported by:||Keryn Knight <django@…>||Owned by:||koirikivi|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The format_callback used for rendering the objects to be deleted on the confirmation screen doesn't attempt to fail gracefully, if there is no named URL fitting the "namespace:appname_modelname_change" - if get_urls() is overridden on a ModelAdmin subclass to either change, remove or replace the change_view, the delete page will never work due to a NoReverseMatch.
Proposed solution: NoReverseMatch should be caught, and the format should end up the same as if has_admin were False.
(note: link to GitHub above is to the latest revision in master, as I write this.)
Change History (5)
comment:1 Changed 7 months ago by koirikivi
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 7 months ago by koirikivi
- Owner changed from nobody to koirikivi
- Status changed from new to assigned
comment:3 Changed 7 months ago by koirikivi
- Has patch set