From 805c364fcf52f69498e15ddd8960baa3e4bc6d34 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sun, 2 Dec 2007 18:21:07 +0000 Subject: Fixed #3511 -- Changed QuerySet.get() to return a MultipleObjectsReturned exception, rather than an assertion error. Thanks, Gary Wilson and cheeming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6838 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/shortcuts.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/shortcuts.txt b/docs/shortcuts.txt index 6c55486b5f..f94babfecb 100644 --- a/docs/shortcuts.txt +++ b/docs/shortcuts.txt @@ -98,8 +98,8 @@ This example is equivalent to:: except MyModel.DoesNotExist: raise Http404 -Note: As with ``get()``, an ``AssertionError`` will be raised if more than -one object is found. +Note: As with ``get()``, an ``MultipleObjectsReturned`` exception will be +raised if more than one object is found. .. _get(): ../db-api/#get-kwargs -- cgit v1.3