Message from discussion
QuerySet.values() Shallow Copy
MIME-Version: 1.0
Received: by 10.100.231.16 with SMTP id d16mr428630anh.20.1237478616205; Thu,
19 Mar 2009 09:03:36 -0700 (PDT)
Date: Thu, 19 Mar 2009 09:03:36 -0700 (PDT)
In-Reply-To: <0d293455-7f4e-4cd5-9231-f83bbb1d0833@o11g2000yql.googlegroups.com>
X-IP: 12.196.44.226
References: <c6777e3d-bede-461c-b335-0f23f34d54c9@y13g2000yqn.googlegroups.com>
<1237427734.10248.29.camel@lancre.tredinick.net> <0d293455-7f4e-4cd5-9231-f83bbb1d0833@o11g2000yql.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Message-ID: <39129963-c72e-41d9-a405-351615396cd9@q16g2000yqg.googlegroups.com>
Subject: Re: QuerySet.values() Shallow Copy
From: Bob Thomas <robert.w.tho...@gmail.com>
To: Django developers <django-developers@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Mar 19, 8:17=A0am, Vitaly <vit...@ufairsoft.com> wrote:
> I wanted json serialize a tree of django model objects: Schedule ->
> Player -> django.models.User.
> django.core.serializers.serialize does shallow serialization of
> QuerySet but I want a deep one. Next, I looked at QuerySet.values()
> plus simplejson but alas the shallow copy again.
>
You may want to look at http://code.djangoproject.com/ticket/4656
instead, since I think that patch does what you're looking for.