mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.7.x] Fixed #23362 -- Clarified "database columns as attributes" in tutorial.
Backport of 035f2e699c from master
This commit is contained in:
parent
9c849f7c7a
commit
808722e062
@ -641,7 +641,7 @@ Once you're in the shell, explore the :doc:`database API </topics/db/queries>`::
|
|||||||
>>> q.id
|
>>> q.id
|
||||||
1
|
1
|
||||||
|
|
||||||
# Access database columns via Python attributes.
|
# Access model field values via Python attributes.
|
||||||
>>> q.question_text
|
>>> q.question_text
|
||||||
"What's new?"
|
"What's new?"
|
||||||
>>> q.pub_date
|
>>> q.pub_date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user