Brylie Christopher Oxley
Brylie Christopher Oxley

Reputation: 1862

How to customize the Wagtail Admin Settings->Users list view (/admin/users/)?

We would like to modify the visible columns on the Wagtail Admin Settings->Users list view, such as displaying an additional property on a custom User model. How can we modify the Wagtail Admin Settings->Users list view to add custom properties? I couldn't find any mention in the Wagtail docs aside from customizing the user account settings form.

I searched the Wagtail documentation for any mention of customizing the Users listing page and hoped to find some information.

Upvotes: 0

Views: 494

Answers (1)

cnk
cnk

Reputation: 1296

To add fields to the user index view you will need to override the template - https://docs.wagtail.org/en/stable/extending/generic_views.html#templates

If the data is already available in the page context, for example an extra field on the User model, you should be able to do what you want by copying the index template to the location discussed in the link above and then adding your column.

Upvotes: 2

Related Questions