Re: Django queryset 'in' operator on two querysets fails on first call

2013-04-10 Thread Tom Evans
On Wed, Apr 10, 2013 at 2:26 PM, bradley griffiths wrote: > Cross posted from: stack overflow. > > When using the 'in' operator on two querysets, the first time the call is > made it fails. > > … > > print category_list # [, ] > print other_cats # [] > print category_list[0] in other_cats # False

Re: Django queryset 'in' operator on two querysets fails on first call

2013-04-10 Thread carlos
django-queryset-in-operator-on-two-querysets-fails-on-first-call> > . > > When using the 'in' operator on two querysets, the first time the call is > made it fails. > > from django.db import models > class Category(models.Model): > name = models.CharField(max_

Django queryset 'in' operator on two querysets fails on first call

2013-04-10 Thread bradley griffiths
Cross posted from: stack overflow<http://stackoverflow.com/questions/15923809/django-queryset-in-operator-on-two-querysets-fails-on-first-call> . When using the 'in' operator on two querysets, the first time the call is made it fails. from django.db import models class Categ