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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user