Fixed #24763 -- Moved DoesNotExist exception to model docs.

This commit is contained in:
David Krisch 2015-05-07 15:30:04 -10:00 committed by Tim Graham
parent 681df1aeaf
commit 1a62f19707
6 changed files with 33 additions and 24 deletions

View file

@ -712,7 +712,7 @@ Miscellaneous
* Accessing reverse one-to-one relations fetched via
:meth:`~django.db.models.query.QuerySet.select_related` now raises
:exc:`~django.core.exceptions.DoesNotExist` instead of returning ``None``.
:exc:`~django.db.models.Model.DoesNotExist` instead of returning ``None``.
.. _deprecated-features-1.5:

View file

@ -315,7 +315,7 @@ Minor features
a ``SuspiciousOperation`` reaches the WSGI handler to return an
``HttpResponseBadRequest``.
* The :exc:`~django.core.exceptions.DoesNotExist` exception now includes a
* The :exc:`~django.db.models.Model.DoesNotExist` exception now includes a
message indicating the name of the attribute used for the lookup.
* The :meth:`~django.db.models.query.QuerySet.get_or_create` method no longer