Request parsing when .POST accessed by tomchristie · Pull Request #3592 · encode/django-rest-framework (original) (raw)
Hi. Not sure if my issue is related to this fix, but this is what I have found til that moment.
Today I upgraded my DRF version to 3.3.1. In my application, I use django-rest-auth (version 0.5.0)
and django-allauth (version 0.24.1) for the sign-up mechanism that my app uses. Until now, the sign-up was working fine in version 3.2.3 that I used. After upgrading to 3.3.1, sign-up brokes. Trying to trace the issue, what I get as response is:
Request Method: POST
Request URL: http://localhost:8000/api/auth/registration/
Django Version: 1.8.6
Exception Type: AttributeError
Exception Value: can't set attribute
And it point to me at line 54 of views.py of rest-auth package:
rest_auth/registration/views.py Line 54 is:
self.request.POST = self.request.data.copy()
So, the above statement fails for DRF 3.3.1, although it was working in 3.2.3
Do you know why this could be failing? Should the changes you made for this bug affect the above command somehow?
Probably if this is the case there should be an update for allauth as I understand it is not your responsibility, but just wondering why after upgrading to DRF 3.3.1 got that issue, and any ideas on how I can overcome this.
Regards,
Babis