diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-23 12:27:49 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-23 14:26:56 -0500 |
| commit | 51ea30a43bafad40b4a24ad0be346796a9c7ab6a (patch) | |
| tree | 673def0025a88209579282096be4c2603faa5f88 /docs | |
| parent | ac098867c004b7336aac30d0689e70fbd73a7306 (diff) | |
[1.7.x] Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.
The migrations autodetector now issues AlterModelOptions operations for
Meta.managed changes instead of DeleteModel + CreateModel.
Thanks iambibhas for the report and Simon and Markus for review.
Backport of 061caa5b386681dc7bdef16918873043224a299c from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.7.2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/1.7.2.txt b/docs/releases/1.7.2.txt index 179bd5f7db..309aa736ad 100644 --- a/docs/releases/1.7.2.txt +++ b/docs/releases/1.7.2.txt @@ -162,3 +162,8 @@ Bugfixes * Added ``datetime.time`` support to migrations questioner (:ticket:`23998`). * Fixed admindocs crash on apps installed as eggs (:ticket:`23525`). + +* Changed migrations autodetector to generate an ``AlterModelOptions`` operation + instead of ``DeleteModel`` and ``CreateModel`` operations when changing + ``Meta.managed``. This prevents data loss when changing ``managed`` from + ``False`` to ``True`` and vice versa (:ticket:`24037`). |
