1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

[1.7.x] Fixed #22453 -- Corrected DoesNotExist message in docs.

Thanks Eugenio Cano-Manuel.

Backport of eefad142de from master
This commit is contained in:
Tim Graham 2014-04-16 08:35:17 -04:00
parent 62ac77fa23
commit 8edba6eb90
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ necessary:
>>> Reporter.objects.get(id=2)
Traceback (most recent call last):
...
DoesNotExist: Reporter matching query does not exist. Lookup parameters were {'id': 2}
DoesNotExist: Reporter matching query does not exist.
# Create an article.
>>> from datetime import date

View File

@ -777,7 +777,7 @@ Save these changes and start a new Python interactive shell by running
>>> Question.objects.get(id=2)
Traceback (most recent call last):
...
DoesNotExist: Question matching query does not exist. Lookup parameters were {'id': 2}
DoesNotExist: Question matching query does not exist.
# Lookup by a primary key is the most common case, so Django provides a
# shortcut for primary-key exact lookups.