mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #24763 -- Moved DoesNotExist exception to model docs.
This commit is contained in:
parent
681df1aeaf
commit
1a62f19707
6 changed files with 33 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue