RealmTeam / django-rest-framework-social-oauth2

python-social-auth and oauth2 support for django-rest-framework
MIT License
1.06k stars 191 forks source link

make request.data mutable #140

Closed adamyala closed 6 years ago

adamyala commented 6 years ago

Reference https://github.com/PhilipGarnero/django-rest-framework-social-oauth2/issues/136 for code example with print debugging.

When request.data.items() is accessed it sets the mutability of request._request.POST back to False. This PR makea a copy of the looped over data to avoid this behavior.