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.
Source:stackexchange.com