﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19135	"Example in ""Spanning Multi-valued relationships"" is mixed"	anonymous	nobody	"'''The example writes:'''

That may sound a bit confusing, so hopefully an example will clarify. To select all blogs that contain entries with both ""Lennon"" in the headline and that were published in 2008 (the same entry satisfying both conditions), we would write:
{{{
Blog.objects.filter(entry__headline__contains='Lennon',
        entry__pub_date__year=2008)
}}}
To select all blogs that contain an entry with ""Lennon"" in the headline as well as an entry that was published in 2008, we would write:
{{{
Blog.objects.filter(entry__headline__contains='Lennon').filter(
        entry__pub_date__year=2008)
}}}
From my understanding, the two examples are mixed up: the first example should be for the second explanation and vice versa. First example is a union of two sets: filter(setA, setB), the second example is an intersection of two sets: filter(setA).filter(setB)."	Uncategorized	closed	Documentation	1.4	Normal	invalid			Unreviewed	0	0	0	0	0	0
