On Nov 9, 11:45 am, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel <matt.schinc...@gmail.com> > wrote: > > > I am developing a django site that has a RESTful API, and allows for > > json representations of the resources. > > > I have hit a bit of a hitch with respect to the data that I need to > > PUT, to do with the inbuilt test client. > > > If I use client.post(url, data, content_type='application/json', > > **AUTH), then it works fine: I can create an object no worries. If I > > use client.put(url, data, content_type='application/json', **AUTH), > > then it fails, when it tries to encode the multipart data, which it > > shouldn't be doing. > > > Anyone else come across this? > > Yes :-) > > http://code.djangoproject.com/ticket/11371 > > This bug was fixed in trunk about 2 weeks ago. It's available in the > latest SVN revisions of trunk and the 1.1.X branch. When the stable > 1.2 and 1.1.2 versions are released, they will include the fix. >
Super. I was tracking trunk, with some local modifications. Pulled and merged the current revision. All good now. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---