Loading docs/topics/migrations.txt +3 −1 Original line number Diff line number Diff line Loading @@ -340,7 +340,9 @@ They will, however, have the same fields, relationships and ``Meta`` options References to functions in field options such as ``upload_to`` and ``limit_choices_to`` are serialized in migrations, so the functions will need to be kept around for as long as there is a migration referencing them. 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 Loading Loading
docs/topics/migrations.txt +3 −1 Original line number Diff line number Diff line Loading @@ -340,7 +340,9 @@ They will, however, have the same fields, relationships and ``Meta`` options References to functions in field options such as ``upload_to`` and ``limit_choices_to`` are serialized in migrations, so the functions will need to be kept around for as long as there is a migration referencing them. 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 Loading