summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShipeng Feng <fsp261@gmail.com>2019-11-08 16:41:36 +0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-08 09:44:58 +0100
commit5ad97e53fdf84b5f47bef859c5f358ee6fb6deb2 (patch)
tree09136f5913e3260013c2b32f73988c590e77ad2e
parenta39db53e0c53fb5ed9b166e8d1e69576fe2527eb (diff)
downloaddjango-5ad97e53fdf84b5f47bef859c5f358ee6fb6deb2.tar.gz
[2.2.x] Fixed #30955 -- Doc'd that only concrete base models are stored in historical models bases.
Abstract models are removed from bases when generating historical model state since 6436f1fad9ce51f18735106ac75aeea3d6d1f310. Backport of 8058d9d7adb189fec75a4b57565f225996c7b22c from master.
-rw-r--r--docs/topics/migrations.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 871f61a7b6..04f2fe5695 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -414,11 +414,11 @@ classes will need to be kept around for as long as there is a migration
referencing them. Any :doc:`custom model fields </howto/custom-model-fields>`
will also need to be kept, since these are imported directly by migrations.
-In addition, the base classes of the model are just stored as pointers, so you
-must always keep base classes around for as long as there is a migration that
-contains a reference to them. On the plus side, methods and managers from these
-base classes inherit normally, so if you absolutely need access to these you
-can opt to move them into a superclass.
+In addition, the concrete base classes of the model are stored as pointers, so
+you must always keep base classes around for as long as there is a migration
+that contains a reference to them. On the plus side, methods and managers from
+these base classes inherit normally, so if you absolutely need access to these
+you can opt to move them into a superclass.
To remove old references, you can :ref:`squash migrations <migration-squashing>`
or, if there aren't many references, copy them into the migration files.