Hello,
when I try to serialize carts some of the dates get thrown away.
I use django 1.1 with satchmo 8.1 (adjusted to work).
Here's how it looks in XML dump, see cart id 3... nothing's there and
clearly in the database all the carts have their creation date
present.
<object pk="2" model="shop.cart">
<field to="sites.site" name="site" rel="ManyToOneRel">1</field>
<field type="CharField" name="desc"><None></None></field>
<field type="DateTimeField" name="date_time_created">2009-07-24
11:42:18</field>
<field to="contact.contact" name="customer"
rel="ManyToOneRel"><None></None></field>
</object>
<object pk="3" model="shop.cart">
<field to="sites.site" name="site" rel="ManyToOneRel">1</field>
<field type="CharField" name="desc"><None></None></field>
<field type="DateTimeField" name="date_time_created"></field>
<field to="contact.contact" name="customer"
rel="ManyToOneRel"><None></None></field>
</object>
<object pk="4" model="shop.cart">
<field to="sites.site" name="site" rel="ManyToOneRel">1</field>
<field type="CharField" name="desc"><None></None></field>
<field type="DateTimeField" name="date_time_created">2009-07-24
12:50:37</field>
<field to="contact.contact" name="customer"
rel="ManyToOneRel"><None></None></field>
</object>
With the JSON:
{
"pk": 2,
"model": "shop.cart",
"fields": {
"date_time_created": "2009-07-24 11:42:18",
"customer": null,
"site": 1,
"desc": null
}
},
{
"pk": 3,
"model": "shop.cart",
"fields": {
"date_time_created": null,
"customer": null,
"site": 1,
"desc": null
}
},
{
"pk": 4,
"model": "shop.cart",
"fields": {
"date_time_created": "2009-07-24 12:50:37",
"customer": null,
"site": 1,
"desc": null
}
},
I don't know where the problem could be, if it's django's, satchmo's
or my problem. :(
Thanks for any insight,
Ales
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---