st4lk / django-rest-social-auth

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

modified exclude field in UserSerializer to only exclude the fields t… #132

Closed eelectronn closed 3 years ago

eelectronn commented 3 years ago

Hello, and thanks for creating this very useful project. This is in response to issue #96 It raises this error when a field is excluded from UserSerializer that is not actually present in user model. Specifically, when a custom user model is implemented by extending the AbstractBaseUser. The fix involves only excluding the fields that are present in the user model. Take care.

eelectronn commented 3 years ago

This PR solves #137

st4lk commented 3 years ago

Thanks for the update!

st4lk commented 3 years ago

I made some changes here: https://github.com/st4lk/django-rest-social-auth/pull/138