diff options
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/checks.txt | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/docs/topics/checks.txt b/docs/topics/checks.txt index a019caa7c6..355e85714e 100644 --- a/docs/topics/checks.txt +++ b/docs/topics/checks.txt @@ -120,17 +120,22 @@ The code below is equivalent to the code above:: .. _field-checking: -Field, model, and manager checks --------------------------------- +Field, model, manager, and database checks +------------------------------------------ In some cases, you won't need to register your check function -- you can piggyback on an existing registration. -Fields, models, and model managers all implement a ``check()`` method that is -already registered with the check framework. If you want to add extra checks, -you can extend the implementation on the base class, perform any extra -checks you need, and append any messages to those generated by the base class. -It's recommended that you delegate each check to separate methods. +Fields, models, model managers, and database backends all implement a +``check()`` method that is already registered with the check framework. If you +want to add extra checks, you can extend the implementation on the base class, +perform any extra checks you need, and append any messages to those generated +by the base class. It's recommended that you delegate each check to separate +methods. + +.. versionchanged:: 1.10 + + Database backend checks were added. Consider an example where you are implementing a custom field named ``RangedIntegerField``. This field adds ``min`` and ``max`` arguments to the |
