Skip to content

regression ? custom admin urls #381

@stygmate

Description

@stygmate

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions