I'm trying to test a REST request using tastypie ResourceTestCase and
api_client, but it has a different behaviour from using angular js, for
example.

The data sent for a DELETE request comes in GET parameters of the request
using the api_client of ResourceTestCase of tastypie.. like if it was sent
by query params, but when I use angular it comes from raw post data.

How can I change the behaviour of Tastypie to acts like I expect? that is
sending the data in the raw post data?

The current code:

    response = self.api_client.delete(url,
                                   format='json',
                                   authentication=self.credentials,
                                   data=data)


-- 
Daniel França,
about.me/danielfranca

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to