[Django]-Django-piston: request.data availability within DELETE handlers

5๐Ÿ‘

โœ…

I solved this for myself. The short hacky answer is that the method

translate_mime(request)

from piston.utils needs to be run on the request to make the data attribute available.

The overall fix for this would be to make a change in the Piston source code itself in resource.py to execute the translate_mime method for DELETE actions. Currently it only does to automatically for PUT and POST.

But, like I said, you can actually just manually call translate_mime in the actual handler method and it works fine.

๐Ÿ‘คM. Ryan

Leave a comment