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
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_
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
3 matches
Mail list logo