Re: Joining querysets?

2012-10-30 Thread Lachlan Musicman
On Wed, Oct 31, 2012 at 1:26 AM, Bill Freeman  wrote:
>>>
>>> All the ref's I've read online are quite old and recommend using | or
>>> itertools.chain()
>>>
>>> Are these still the recommended method, or am I doing it wrong?
>
> This depends on what you mean by "join" (just in case you need it
> again in the future).  If you mean concatenate, you might try '+'.
>
> If you mean something fancier, you may find help in the Q and F
> queryset operations documentation.

I was looking for concat - so + works, great. Thanks for the tips.

L.

-- 
...we look at the present day through a rear-view mirror. This is
something Marshall McLuhan said back in the Sixties, when the world
was in the grip of authentic-seeming future narratives. He said, “We
look at the present through a rear-view mirror. We march backwards
into the future.”

http://www.warrenellis.com/?p=14314

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Joining querysets?

2012-10-30 Thread Bill Freeman
On Mon, Oct 29, 2012 at 9:46 PM, Lachlan Musicman  wrote:
> On Tue, Oct 30, 2012 at 1:35 PM, Lachlan Musicman  wrote:
>> Hola,
>>
>> So I've reached the point where I feel it necessary to join querysets.
>
>
> Don't bother with this - I just wrote a better Query to solve this issue
>
>
> L.
>
>
>>
>> All the ref's I've read online are quite old and recommend using | or
>> itertools.chain()
>>
>> Are these still the recommended method, or am I doing it wrong?

This depends on what you mean by "join" (just in case you need it
again in the future).  If you mean concatenate, you might try '+'.

If you mean something fancier, you may find help in the Q and F
queryset operations documentation.

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Joining querysets?

2012-10-29 Thread Lachlan Musicman
On Tue, Oct 30, 2012 at 1:35 PM, Lachlan Musicman  wrote:
> Hola,
>
> So I've reached the point where I feel it necessary to join querysets.


Don't bother with this - I just wrote a better Query to solve this issue


L.


>
> All the ref's I've read online are quite old and recommend using | or
> itertools.chain()
>
> Are these still the recommended method, or am I doing it wrong?
>
> cheers
> L.
>
> --
> ...we look at the present day through a rear-view mirror. This is
> something Marshall McLuhan said back in the Sixties, when the world
> was in the grip of authentic-seeming future narratives. He said, “We
> look at the present through a rear-view mirror. We march backwards
> into the future.”
>
> http://www.warrenellis.com/?p=14314



-- 
...we look at the present day through a rear-view mirror. This is
something Marshall McLuhan said back in the Sixties, when the world
was in the grip of authentic-seeming future narratives. He said, “We
look at the present through a rear-view mirror. We march backwards
into the future.”

http://www.warrenellis.com/?p=14314

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Joining querysets?

2012-10-29 Thread Lachlan Musicman
Hola,

So I've reached the point where I feel it necessary to join querysets.

All the ref's I've read online are quite old and recommend using | or
itertools.chain()

Are these still the recommended method, or am I doing it wrong?

cheers
L.

-- 
...we look at the present day through a rear-view mirror. This is
something Marshall McLuhan said back in the Sixties, when the world
was in the grip of authentic-seeming future narratives. He said, “We
look at the present through a rear-view mirror. We march backwards
into the future.”

http://www.warrenellis.com/?p=14314

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.