diff options
| author | Daniel Pyrathon <pirosb3@gmail.com> | 2015-01-02 16:14:23 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-02 10:46:04 -0500 |
| commit | 8958170755b37ce346ae5257c1000bd936faa3b0 (patch) | |
| tree | 53eeaf3e736cb776b84a3bef940f545b753bb37e /docs/ref/exceptions.txt | |
| parent | 1aa3e09c2043c88a760e8b73fb95dc8f1ffef50e (diff) | |
Fixed #9104 -- Moved FieldDoesNotExist to core.exceptions
Diffstat (limited to 'docs/ref/exceptions.txt')
| -rw-r--r-- | docs/ref/exceptions.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/exceptions.txt b/docs/ref/exceptions.txt index bbd0229610..f12a32df25 100644 --- a/docs/ref/exceptions.txt +++ b/docs/ref/exceptions.txt @@ -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 |
