﻿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
17146	Django docs possiable error	from_a_far@…	nobody	"go to: [https://docs.djangoproject.com/en/1.3/topics/db/queries/#complex-lookups-with-q-objects]

and scroll down to:

{{{
Poll.objects.get(
    Q(question__startswith='Who'),
    Q(pub_date=date(2005, 5, 2)) | Q(pub_date=date(2005, 5, 6))
)
}}}

and it says it yealds the following SQL:

{{{
SELECT * from polls WHERE question LIKE 'Who%'
    AND (pub_date = '2005-05-02' OR pub_date = '2005-05-06')
}}}
Thats not true though is it? If it's {{{Poll.objects.get(...}}} it's only going to get one object isn't it?"	Cleanup/optimization	closed	Documentation	1.3	Normal	invalid	documentation		Unreviewed	0	0	0	0	1	0
