HoliSimo
HoliSimo

Reputation: 76

How can I insert in Wagtail the buttons to add and edit foreign key value like Django admin panel?

I would like to have in my Wagtail Admin Panel these buttons that are present in the Django Admin Panel.

DjangoAdmin buttons

Unfortunately I didn't find anything related.

EDIT

This is the editor in Wagtail

WagtailAdmin Panel

As you can see there are no buttons to add partner using a pop up action.

Upvotes: 1

Views: 525

Answers (1)

LB Ben Johnston
LB Ben Johnston

Reputation: 5196

It's not super clear what you want to do, maybe update the question with more details.

Nonetheless you are probably looking for either Wagtail's ModelAdmin feature that allows arbitrary editing, viewing and management of any model within the Wagtail admin.

https://docs.wagtail.org/en/stable/reference/contrib/modeladmin/index.html

You may also want to understand the way that Wagtail works with Modelcluster to allow for editing and managing of foreign key related models. This works in ModelAdmin and other parts of the editing interface.

https://docs.wagtail.org/en/stable/reference/pages/panels.html#inline-panels

Upvotes: 1

Related Questions