ixc / wagtail-instance-selector

A widget for Wagtail's admin that allows you to create and select related items
MIT License
54 stars 17 forks source link

Possible to select model instance without editing? #21

Open brylie opened 3 years ago

brylie commented 3 years ago

When trying to select a model instance, I am only able to click on the link to the model instance edit form. Only after clicking "save", without any changes, am I able to select the model instance. How can I configure the instance select modal to allow me to select model instances without first visiting the edit form?

Observed behavior

There is no place to click the instance to make a selection. Clicking the instance name takes me to the edit form, which is not typically desirable.

Peek 2021-06-20 20-48

Expected behavior

I was expecting to be able to select the instance directly from the results table, similar to the Wagtail PageChoosePanel

Peek 2021-06-20 21-02

Feature request

One solution might be to have explicit "select" and "edit" buttons on each row to let the user choose their desired action.