Your Ad Here

Tuesday, January 17, 2012

raw_post_data

Hi,

I am using PUT method, I get data from request.raw_post_data.

it's possible do that?

a = Article.objects.get(pk=1)
f = ArticleForm(request.raw_post_data, instance=a)
f.save()


Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment