[Django]-How to properly override User admin in Django

3👍

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.

Leave a comment