mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #9104 -- Moved FieldDoesNotExist to core.exceptions
This commit is contained in:
parent
1aa3e09c20
commit
8958170755
22 changed files with 73 additions and 60 deletions
|
@ -33,6 +33,19 @@ ObjectDoesNotExist and DoesNotExist
|
|||
See :meth:`~django.db.models.query.QuerySet.get()` for further information
|
||||
on :exc:`ObjectDoesNotExist` and :exc:`DoesNotExist`.
|
||||
|
||||
FieldDoesNotExist
|
||||
-----------------
|
||||
.. exception:: FieldDoesNotExist
|
||||
|
||||
The ``FieldDoesNotExist`` exception is raised by a model's
|
||||
``_meta.get_field()`` method when the requested field does not exist on the
|
||||
model or on the model's parents.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
This exception was previously defined only in
|
||||
``django.db.models.fields`` and wasn't part of the public API.
|
||||
|
||||
MultipleObjectsReturned
|
||||
-----------------------
|
||||
.. exception:: MultipleObjectsReturned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue