wlanslovenija / django-tastypie-mongoengine

MongoEngine support for django-tastypie.
Other
73 stars 59 forks source link

Process DELETE request #50

Closed vincepri closed 11 years ago

mitar commented 11 years ago

Please make tests which fail before and work after this patch.

mitar commented 11 years ago

The point is that delete should not have a payload? Why would it?

mitar commented 11 years ago

I think DELETE is processed correctly. It should not have payload, so is checked by assert request.method.lower() not in ('put', 'post', 'patch') and DELETE is not in that list, so everything is OK.

vincepri commented 11 years ago

Yeah, you are right, it was my misunderstanding. I was using a payload on delete and it failed.