django-polymorphic icon indicating copy to clipboard operation
django-polymorphic copied to clipboard

regression ? custom admin urls

Open stygmate opened this issue 6 years ago • 1 comments

in one of my child model i have a change password custom urls

    def get_urls(self):
        return [
                   path(
                       '<path:object_id>/password/',
                       self.admin_site.admin_view(self.mymodel_change_password),
                       name='mymodel_password_change',
                   ),
               ] + super().get_urls()

and when i try to access:

/admin/importers/importateur/1/password/

the url become:

/admin/importers/importateur/1/password/change/

and 1/password is catched as object id for the change view

Any help ?

stygmate avatar Apr 18 '19 12:04 stygmate

anyone ?

stygmate avatar Oct 11 '19 09:10 stygmate