Thursday, May 30, 2013

Re: Django - Tastypie update

Are you using a PUT request to make this change?

If you are making a PUT request, as far as I know, Tastypie will attempt to replace the resource with what you are sending.

If you only want to update 1 field on the resource, look at making a PATCH request.

On Thursday, May 30, 2013 6:10:33 AM UTC-7, Hélio Miranda wrote:
Hi
I am using the tastypie with mongoengine, and my problem is when I edit a field in a collection, when I save, references to other collection are deleted ...
Does anyone know why?
I can only edit a field without changing the other?

--
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