Re: json serializing without certain fields

2007-06-01 Thread emailgregn
this had me stumped. thanks for the fix G On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote: > > > > > Hi > > how can I get JSON out of my Django object without having certain > > fields in there for obvious reasons? > > I found

Serialize with foreign key

2007-06-01 Thread emailgregn
Hi everyone, How can I get foreign key fields serialized ? I can't get the desired effect with: select_related() or Book.objects.extra(select={'firstname': 'subselect for firstname', 'lastname',' subselect for lastname' }) but don't want to iterate over the whole queryset unnecessarily.