Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the edit button #1

Open
BertrandBordage opened this issue Oct 18, 2016 · 1 comment
Open

Add the edit button #1

BertrandBordage opened this issue Oct 18, 2016 · 1 comment

Comments

@BertrandBordage
Copy link

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.

@leo-naeka
Copy link
Member

Hi Bertrand!

Thank you for your kind comment about this module.
I haven't made much noise about this because all this panel stuff seems to be replaced by react components in a foreseeable future, and I hope this will be way more flexible.
You can follow discussions about that here and here.

I do not have time to look at your request right now, but will look asap. Feel free to submit a PR to speed-up the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants