How To Properly Override User Admin In Django
I want to add add inline model and exclude some fields from User change form in Django admin. I'm trying to override Django's built-in UserAdmin to preserve User change design: cl
Solution 1:
groups
field appears in the UserAdmin.fieldsets
also.
The error appears, I think, because you exclude the field from form, but later is defined in the fieldsets and form fails.
Try to overwrite the fieldsets
accordingly, in your UserCustomAdmin
with no groups
field.
Post a Comment for "How To Properly Override User Admin In Django"