Thursday, May 30, 2013

Re: Django - Tastypie update

I'm trying to use the Patch, but is giving error when sending the data:
"The format Indicated 'text / plain' had the deserialization method available. Formats Please check your `` `` and `` `` content_types on your Serializer."

I do not know why, my class this way:
class Meta:
        queryset = Movie.objects.all()
        allowed_methods = ('get', 'post', 'put', 'delete', 'patch')
        list_allowed_methods = ['get', 'post','put', 'delete', 'patch']
        authorization = Authorization()
        resource_name = 'Movie'
        always_return_data = True

What am I doing wrong?

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment