﻿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
23114	Template Variables Docs Incorrect/Unclear	tom.dalton@…	Gabriel Muñumel	"On this section https://docs.djangoproject.com/en/1.6/topics/templates/#variables
In the ""Behind the Scenes"" section, it gives the order that Django tries to resolve a variable like ""X.Y"".
The 4 things that it tries are accurate, but the way/order they're done doesn't appear to be correct.

Ref the code that does this:
https://github.com/django/django/blob/master/django/template/base.py#L756

What actually (seems to) happen is:
* Try dictionary lookup to get ""thing""
* If not found ""thing"", try attribute lookup to get ""thing""
* If not found ""thing"", try list-index lookup to get ""thing""
* If not found ""thing"", then fail
* If ""thing"" is callable, then ""thing"" = ""thing()""
* Return ""thing""

Applies in version 1.6 and onwards, probably applicable to older doc versions too."	Bug	closed	Documentation	1.6	Normal	fixed	template		Accepted	0	0	0	0	1	0
