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.)
--
Ticket URL: <https://code.djangoproject.com/ticket/20640>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Created a test project and verified that the bug occurs.
--
Ticket URL: <https://code.djangoproject.com/ticket/20640#comment:1>
* owner: nobody => koirikivi
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/20640#comment:2>
* has_patch: 0 => 1
Comment:
Pull request: https://github.com/django/django/pull/1485
--
Ticket URL: <https://code.djangoproject.com/ticket/20640#comment:3>
Comment (by koirikivi):
Related issue (NoReverseMatch in changelist_view if the
"namespace:appname_modelname_change" url is removed): #20934
--
Ticket URL: <https://code.djangoproject.com/ticket/20640#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"3c0300405009b82b52fd15483371097221662fcd"]:
{{{
#!CommitTicketReference repository=""
revision="3c0300405009b82b52fd15483371097221662fcd"
Fixed #20640 -- Avoided NoReverseMatch in get_deleted_objects
The default delete action resulted in a NoReverseMatch if it were to
list any Model with a ModelAdmin with `get_urls` overridden to remove
the change url. Catching the error and not displaying the link in that
case, as was already done for models with no registered admins.
Thanks Keryn Knight for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20640#comment:5>