﻿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
23362	"Database Columns as ""Attributes"""	Malik A. Rumi	nobody	"I recently got an Attribute Error which told me that my type object 'Articles' has no attribute 'name'. Well, I thought that was crazy, because 'name' was the very first field on my Articles model. I did some digging in dir() on the shell, only to find out that indeed Articles did not have an attribute 'name'. Digging further, I found that it did have an 'object' called name, but these objects are not Python attributes, or perhaps, only become attributes at runtime. So where did I get the idea that they were? 

[https://docs.djangoproject.com/en/1.6/intro/tutorial01/]
{{{# Access database columns via Python attributes.
>>> p.question
""What's new?""
>>> p.pub_date
datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=<UTC>)}}}

I think this language needs to be clarified. One could argue that the proper interpretation is ‘access database columns as if’, or ‘in the same style as’, rather ‘through their’(nonexistent) Python attributes. 
"	Cleanup/optimization	closed	Documentation	1.6	Normal	fixed			Unreviewed	0	0	0	0	0	0
