1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Changed get_object() not to use 'ordering' parameter from the model. Thanks, Ned Batchelder. Also updated some unit tests to show correct DoesNotExist output

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-02-25 17:24:17 +00:00
parent de66a3a7da
commit 250281361d
4 changed files with 4 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ datetime.datetime(2005, 7, 28, 0, 0)
>>> articles.get_object(id__exact=2)
Traceback (most recent call last):
...
ArticleDoesNotExist: Article does not exist for {'id__exact': 2}
ArticleDoesNotExist: Article does not exist for {'order_by': (), 'id__exact': 2}
>>> articles.get_object(pub_date__year=2005, pub_date__month=8)
Traceback (most recent call last):