samuraisam / django-json-rpc

JSON-RPC Implementation for Django
MIT License
286 stars 83 forks source link

Using HttpRequest.raw_post_data triggers DeprecationWarning #44

Closed davea closed 11 years ago

davea commented 11 years ago

Django 1.5 has started spitting out DeprecationWarnings (instead of PendingDeprecationWarning, used in 1.4) when accessing HttpRequest.raw_post_data.

I've patched the code to use the new-style HttpRequest.body attribute to stop the warning.

samuraisam commented 11 years ago

Is this compatible with 1.2 and 1.3?

davea commented 11 years ago

Good point. Tests don't pass fully on 1.2/1.3 even on master, but this change doesn't cause any regressions in the tests.

samuraisam commented 11 years ago

Thanks! Mergerd!