﻿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
23094	QuerySet API docs: Sample code doesn't match	thegeekofalltrades@…	Tim Graham	"On the QuerySet API documentation page, under the section for select_related (https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.select_related), in the section about following foreign keys, the documentation reads:

""...then a call to `Book.objects.select_related('person', 'person__city').get(id=4)` will cache the related Person and the related City:""

and the sample code that follows it reads:
{{{
b = Book.objects.select_related('person__city').get(id=4)
}}}
The arguments passed to select_related do not match.

The error is present in both the Dev docs and the 1.7 docs."	Cleanup/optimization	closed	Documentation	1.7-beta-2	Normal	fixed	documentation error mismatch match sample		Accepted	0	0	0	0	1	0
