Hi guys,

I am confused as to why the intersection of my two querysets keeps
returning the empty set.

I have two querysets, let's call them query1 and query2.

query1 | query2 "adds" them, i.e., union just fine.  That works great.

query1 & query2 leaves no results, no matter the test case.

Could it be that inside my querysets I have objects that refer to many-
to-many fields? I had seen some passing reference to "if the model is
not too complicated?

My queryset is composed exclusively of Sample objects.

class Sample(models.Model):
        number = models.CharField(max_length=30)
        description = models.TextField(blank=True)
        facets = models.ManyToManyField(Facet)

I'd appreciate any help!

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to