Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Add the edit button #1

@BertrandBordage

Description

@BertrandBordage

First, thanks for this project, it’s really a must-have that should be in wagtail.contrib.modeladmin!

It would be perfect if we could have the edit button like other *ChooserPanels.
I know this is more tricky since there’s no view for editing this kind of model. But it could be specified either using a get_edit_url model method or with a function passed to the ChooserPanel, like lambda instance: '[app]_[model]_modeladmin_edit', instance.pk. By default, we could try to use the default ModelAdmin url I specified in the lambda, and if doesn’t work, hide the button.

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