RE: single queryset from multiple tables

2017-09-18 Thread Matthew Pava
users@googlegroups.com Subject: Re: single queryset from multiple tables On Fri, Sep 15, 2017 at 07:26:27AM -0700, DG wrote: > After reading this thread and answers on SO (e.g. How to combine 2 or > more querysets in a Django view? > <https://stackoverflow.com/questions/431628/how-to-co

Re: single queryset from multiple tables

2017-09-18 Thread Michal Petrucha
On Fri, Sep 15, 2017 at 07:26:27AM -0700, DG wrote: > After reading this thread and answers on SO (e.g. How to combine 2 or more > querysets in a Django view? > ) > > I'm still not sure if this

Re: single queryset from multiple tables

2017-09-15 Thread DG
After reading this thread and answers on SO (e.g. How to combine 2 or more querysets in a Django view? ) I'm still not sure if this code is fully lazy with Django 1.11+ or if it is going to loa

Re: single queryset from multiple tables

2009-04-15 Thread veearrsix
Thanks guys that was perfect On Apr 14, 3:53 pm, Alex Gaynor wrote: > On Tue, Apr 14, 2009 at 10:50 AM, veearrsix wrote: > > > Thanks for the help so far guys, I've used that recipe suggested by > > Malcolm, where by I pass a number of querysets into the method. It > > works as expected I guess

Re: single queryset from multiple tables

2009-04-14 Thread Alex Gaynor
On Tue, Apr 14, 2009 at 10:50 AM, veearrsix wrote: > > Thanks for the help so far guys, I've used that recipe suggested by > Malcolm, where by I pass a number of querysets into the method. It > works as expected I guess, BUT, I would like to be able to sort by the > datetime field from each query

Re: single queryset from multiple tables

2009-04-14 Thread veearrsix
Thanks for the help so far guys, I've used that recipe suggested by Malcolm, where by I pass a number of querysets into the method. It works as expected I guess, BUT, I would like to be able to sort by the datetime field from each queryset, however the fieldnames for each of the date time fields f

Re: single queryset from multiple tables

2009-04-10 Thread Alex Gaynor
On Fri, Apr 10, 2009 at 7:52 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-04-10 at 19:44 -0400, Alex Gaynor wrote: > > > > > > On Fri, Apr 10, 2009 at 7:40 PM, Malcolm Tredinnick > > wrote: > [...] > > > > Particularly with iterators, storing the (next head i

Re: single queryset from multiple tables

2009-04-10 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 19:44 -0400, Alex Gaynor wrote: > > > On Fri, Apr 10, 2009 at 7:40 PM, Malcolm Tredinnick > wrote: [...] > > Particularly with iterators, storing the (next head item, rest > of > iterator) pair in a heap leads to a very neat and fast way to

Re: single queryset from multiple tables

2009-04-10 Thread Alex Gaynor
On Fri, Apr 10, 2009 at 7:40 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-04-10 at 16:44 -0400, Alex Gaynor wrote: > > > > > > On Fri, Apr 10, 2009 at 4:40 PM, veearrsix > > wrote: > > > > This question seems to have been asked a few times, but never > >

Re: single queryset from multiple tables

2009-04-10 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 16:44 -0400, Alex Gaynor wrote: > > > On Fri, Apr 10, 2009 at 4:40 PM, veearrsix > wrote: > > This question seems to have been asked a few times, but never > answered > fully. Not quite true. It's been answered fully a lot of times: querys

Re: single queryset from multiple tables

2009-04-10 Thread Alex Gaynor
On Fri, Apr 10, 2009 at 4:40 PM, veearrsix wrote: > > This question seems to have been asked a few times, but never answered > fully. > > I am looking to query more than one table, but return the results to a > template as one queryset ordered by date. > > The reason i'm doing this is to create a