Kaydet (Commit) eefad142 authored tarafından Tim Graham's avatar Tim Graham

Fixed #22453 -- Corrected DoesNotExist message in docs.

Thanks Eugenio Cano-Manuel.
üst ae5b6627
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment