I have not changed my database. I've always been using MySQL. In the meantime I did some more research and discovered that when I use HTTP GET on a model (I'm talking django-rest-interface) the xml returned has 1 or 0 for Boolean values, which is what I want.
However, when I do an HTTP PUT to update an instance of a model, the xml response has True or False for Boolean values. Though I'm using django-rest-interface, the de/serialization is handled by Django itself. I have tried walking through the code to find out what is going on, but no luck yet. Regards. On Mar 23, 6:33 pm, Karen Tracey <[email protected]> wrote: > On Mon, Mar 23, 2009 at 2:58 AM, chefsmart <[email protected]> wrote: > > I am working on an application that interacts with a Django app > > through Django's xml serialization (using django-rest-interface). > > > All was going ok, when today I got stuck because while Django used to > > serialize BooleanFields as <field type="BooleanField" > > name="is_active">1</field> or <field type="BooleanField" > > name="is_active">0</field> today I received <field type="BooleanField" > > name="is_active">True</field> > > > Why did this happen? I am using the same Django (svn trunk) that I was > > using yesterday. > > Did you change databases? 1/0 for BooleanField looks like MySQL, True/False > something else. There's a ticket reporting this: > > http://code.djangoproject.com/ticket/6276 > > Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

