Skip to content

Commit

Permalink
Merge pull request #327 from blablacio/user-details-serializer-context
Browse files Browse the repository at this point in the history
Pass context to user defined USER_DETAILS_SERIALIZER
  • Loading branch information
maxim-kht authored Oct 2, 2017
2 parents b124aaf + 052094d commit 53398f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_auth/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_user(self, obj):
JWTUserDetailsSerializer = import_callable(
rest_auth_serializers.get('USER_DETAILS_SERIALIZER', UserDetailsSerializer)
)
user_data = JWTUserDetailsSerializer(obj['user']).data
user_data = JWTUserDetailsSerializer(obj['user'], context=self.context).data
return user_data


Expand Down

0 comments on commit 53398f8

Please sign in to comment.