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

Allow to customize UserViewset like GroupViewset #11954

Open
NotANormalNerd opened this issue May 15, 2024 · 2 comments · May be fixed by #11952
Open

Allow to customize UserViewset like GroupViewset #11954

NotANormalNerd opened this issue May 15, 2024 · 2 comments · May be fixed by #11952

Comments

@NotANormalNerd
Copy link

Is your proposal related to a problem?

You are already allowed to customize the GroupViewset by specifing a new GroupViewset in the AppConfig. It would be amazing to have the same for UserViewset to be able to add Custom Columns or other Customizations to the Viewsets.

https://docs.wagtail.org/en/latest/extending/customizing_group_views.html

Describe the solution you'd like

Allow to provide a Custom UserViewset

@laymonage
Copy link
Member

laymonage commented May 15, 2024

Thanks for the suggestion! This has been implemented in #11952 and is awaiting review. When it's merged, it will be available in the next release.

Feedback is welcome, especially around whether we want to deprecate WAGTAIL_USER_EDIT_FORM, WAGTAIL_USER_CREATION_FORM, and WAGTAIL_USER_CUSTOM_FIELDS at the same time or not 🙂

@NotANormalNerd
Copy link
Author

We are currently using all the settings named above. If there is a way to do that easily in UserViewset, I am all for doing that there. Deprecating would therefor be no problem.

Aside from that: Is this also planned for the PageTree? It would be amazing if we could replace the current ViewSet with a customized one. RIght now it is really a lot of monkey patching.

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

Successfully merging a pull request may close this issue.

2 participants