summaryrefslogtreecommitdiff
path: root/django/shortcuts/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/shortcuts/__init__.py')
-rw-r--r--django/shortcuts/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/shortcuts/__init__.py b/django/shortcuts/__init__.py
index 611b997736..1cece7c7c0 100644
--- a/django/shortcuts/__init__.py
+++ b/django/shortcuts/__init__.py
@@ -38,7 +38,7 @@ def get_object_or_404(klass, *args, **kwargs):
klass may be a Model, Manager, or QuerySet object. All other passed
arguments and keyword arguments are used in the get() query.
- Note: Like with get(), an AssertionError will be raised if more than one
+ Note: Like with get(), an MultipleObjectsReturned will be raised if more than one
object is found.
"""
queryset = _get_queryset(klass)