diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-01-28 14:10:40 +0000 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-01-28 14:10:40 +0000 |
| commit | 5dc4a8652cd6e2a80fbedd8984f30c8fc482c3ea (patch) | |
| tree | b8c7da84340e6a2d657fb37e2386b3238778f673 | |
| parent | 2b6914049a882e2f1b398baf54940e815b85a90a (diff) | |
Add an extra warning about custom save methods in migrations docs.
| -rw-r--r-- | docs/topics/migrations.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index c585389a14..f8500f2f2d 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -298,6 +298,12 @@ models will not have any custom methods or managers that you have defined. They will, however, have the same fields, relationships and ``Meta`` options (also versioned, so they may be different from your current ones). +.. warning:: + + This means that you will NOT have custom save() methods called on objects + when you access them in migrations, and you will NOT have any custom constructors + or instance methods. Plan appropriately! + 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 |
