mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #24763 -- Moved DoesNotExist exception to model docs.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user