Re: Problem with defer

2010-02-23 Thread Dexter
Aah.. TY On Tue, Feb 23, 2010 at 9:46 PM, Daniel Roseman wrote: > > On Feb 23, 8:25 pm, Dexter wrote: > > I want to stringify that objectList with only the name field in the > result. > > How can I achieve this? > >

Re: Problem with defer

2010-02-23 Thread Daniel Roseman
On Feb 23, 8:25 pm, Dexter wrote: > I want to stringify that objectList with only the name field in the result. > How can I achieve this? Floor.objects.all().values_list("name", flat=True) -- DR. -- You received this message because you are subscribed to the Google

Re: Problem with defer

2010-02-23 Thread Dexter
I want to stringify that objectList with only the name field in the result. How can I achieve this? On Tue, Feb 23, 2010 at 8:00 PM, Bill Freeman wrote: > How do you know they weren't deferred? You can still access them if they > were, IIUC. It just causes additional

Re: Problem with defer

2010-02-23 Thread Bill Freeman
How do you know they weren't deferred? You can still access them if they were, IIUC. It just causes additional queries, behind the scenes. On Mon, Feb 22, 2010 at 12:31 PM, Dexter wrote: > Oh, I'm sorry, > > no error appears, but the queryset returns the complete objects

Re: Problem with defer

2010-02-22 Thread Dexter
Oh, I'm sorry, no error appears, but the queryset returns the complete objects with all the fields, not only the name field On Mon, Feb 22, 2010 at 6:30 PM, Daniel Roseman wrote: > On Feb 22, 5:15 pm, Dexter wrote: > > Hi, > > > > Im using django

Re: Problem with defer

2010-02-22 Thread Daniel Roseman
On Feb 22, 5:15 pm, Dexter wrote: > Hi, > > Im using django 1.1.1, and i'm trying to defer a queryset, but it doesn't > seem to work. > Here's my callback: > > def open(request, id=None): > > >     """Callback to fire when a specific floor is opened.""" > >     if

Problem with defer

2010-02-22 Thread Dexter
Hi, Im using django 1.1.1, and i'm trying to defer a queryset, but it doesn't seem to work. Here's my callback: def open(request, id=None): > """Callback to fire when a specific floor is opened.""" > if request.user.is_authenticated(): > if id: > data =