Closed adamyala closed 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.
request.data.items()
request._request.POST
False
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 ofrequest._request.POST
back toFalse
. This PR makea a copy of the looped over data to avoid this behavior.