mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #1781 -- Fixed unit tests to use new error message for DoesNotExist. Thanks, pb
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -73,12 +73,12 @@ Area woman programs in Python
|
||||
>>> Article.objects.get(id__exact=2)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DoesNotExist: Article does not exist for {'id__exact': 2}
|
||||
DoesNotExist: Article matching query does not exist.
|
||||
|
||||
>>> Article.objects.get(pub_date__year=2005, pub_date__month=8)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DoesNotExist: Article does not exist for ...
|
||||
DoesNotExist: Article 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.
|
||||
|
||||
Reference in New Issue
Block a user