Fixed #1225 -- Added note to docs/tutorial01.txt that notes 2005 may not be current year.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d701987fd2
commit
e702ec158f
|
@ -455,8 +455,12 @@ Let's jump back into the Python interactive shell by running
|
||||||
What's up?
|
What's up?
|
||||||
>>> polls.get_object(question__startswith='What')
|
>>> polls.get_object(question__startswith='What')
|
||||||
What's up?
|
What's up?
|
||||||
|
|
||||||
|
# Get the poll whose year is 2005. Of course, if you're going through this
|
||||||
|
# tutorial in another year, change as appropriate.
|
||||||
>>> polls.get_object(pub_date__year=2005)
|
>>> polls.get_object(pub_date__year=2005)
|
||||||
What's up?
|
What's up?
|
||||||
|
|
||||||
>>> polls.get_object(id__exact=2)
|
>>> polls.get_object(id__exact=2)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue