﻿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
27354	Incorrect variable name given in tutorial	Nick Mow	nobody	"Bug found here: https://docs.djangoproject.com/en/1.10/intro/tutorial02/


On part 2 (Databases) of the Django tutorial v1.10, the following line is given:

{{{>>> Choice.objects.filter(question__pub_date__year=current_year)}}}


However, the variable was created as {{{pub_date__year}}} (not {{{question__pub_date__year}}}) in a previous section of the same page:

{{{
# Get the question that was published this year.
>>> from django.utils import timezone
>>> current_year = timezone.now().year
>>> Question.objects.get(pub_date__year=current_year)
<Question: What's up?>
}}}"	Bug	closed	Documentation	1.10	Normal	invalid	tutorial, 1.10		Unreviewed	0	0	0	0	1	0
