mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
71f4568613
commit
0727df90f0
5 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ Fran Bones
|
|||
>>> Employee.objects.get(pk='foo')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
DoesNotExist: Employee does not exist for {'pk': 'foo'}
|
||||
DoesNotExist: Employee matching query does not exist.
|
||||
|
||||
# Use the name of the primary key, rather than pk.
|
||||
>>> Employee.objects.get(employee_code__exact='ABC123')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue