[1.5.X] Fixed #19260 - Added a comment to tutorial 1.
Thanks terwey for the suggestion.
Backport of a72b8a2247
from master
This commit is contained in:
parent
b3ea37e304
commit
897d8adb1c
|
@ -666,6 +666,7 @@ Save these changes and start a new Python interactive shell by running
|
||||||
>>> Poll.objects.get(pub_date__year=2012)
|
>>> Poll.objects.get(pub_date__year=2012)
|
||||||
<Poll: What's up?>
|
<Poll: What's up?>
|
||||||
|
|
||||||
|
# Request an ID that doesn't exist, this will raise an exception.
|
||||||
>>> Poll.objects.get(id=2)
|
>>> Poll.objects.get(id=2)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue