summaryrefslogtreecommitdiff
path: root/docs/topics/checks.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-20 07:34:21 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-26 11:41:19 +0200
commita1e9e9abc592b8f44fa798c6e4e225b1a04f757c (patch)
tree7c0713759aa50f55b639433675015e385c434e04 /docs/topics/checks.txt
parentc773d5794eb425c4836c726bdf6e1e742c94e9c0 (diff)
Refs #27236 -- Reverted "Refs #27236 -- Added generic mechanism to handle the deprecation of migration operations."
This reverts commit 41019e48bbf082c985e6ba3bad34d118b903bff1.
Diffstat (limited to 'docs/topics/checks.txt')
-rw-r--r--docs/topics/checks.txt20
1 files changed, 8 insertions, 12 deletions
diff --git a/docs/topics/checks.txt b/docs/topics/checks.txt
index 0864d6db38..9586466285 100644
--- a/docs/topics/checks.txt
+++ b/docs/topics/checks.txt
@@ -128,18 +128,18 @@ The code below is equivalent to the code above::
.. _field-checking:
-Field, model, manager, migration, and database 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, model managers, migrations, 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.
+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.
Consider an example where you are implementing a custom field named
``RangedIntegerField``. This field adds ``min`` and ``max`` arguments to the
@@ -194,10 +194,6 @@ the only difference is that the check is a classmethod, not an instance method::
# ... your own checks ...
return errors
-.. versionchanged:: 4.2
-
- Migration checks were added.
-
Writing tests
-------------