How to let staff users to add new user but prevent them to change some fields of the users on Django-admin??

Hi.

I want to let staff users to add users, and let them to change user details. But I want to make some restrictions, like changing name of the user.

What is the best way to do that?

See the ModelAdmin functions such as readonly_fields. You should be able to find the appropriate functions to use to build whatever restrictions or permissions you wish to enforce.

1 Like