st4lk / django-rest-social-auth

OAuth signin with django rest framework
MIT License
521 stars 122 forks source link

Custom user problem #96

Closed rafikchouaya1 closed 5 years ago

rafikchouaya1 commented 5 years ago

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.

eelectronn commented 4 years ago

I'm wondering if you did end up finding the solution to this?