when using a custom user model (AbstractBaseUser) this error appears
AssertionError: The field 'user_permissions' was included on serializer UserSerializer in the 'exclude' option, but does not match any model field.
because of the
exclude = (
'is_staff', 'is_active', 'date_joined', 'password', 'last_login', 'groups', 'is_superuser',
)
in the UserSerializer
if someone know how to override UserSerializer please tell me.
when using a custom user model (AbstractBaseUser) this error appears AssertionError: The field 'user_permissions' was included on serializer UserSerializer in the 'exclude' option, but does not match any model field. because of the
exclude = ( 'is_staff', 'is_active', 'date_joined', 'password', 'last_login', 'groups', 'is_superuser', ) in the UserSerializer if someone know how to override UserSerializer please tell me.