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:25:31 -0500 |
| commit | 061caa5b386681dc7bdef16918873043224a299c (patch) | |
| tree | 8e8817646ad28a00c153ff7e5fb742fa791f7b2f /docs | |
| parent | 69ee7c8d76da72d1392ed2a2597ed094da05d57e (diff) | |
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.
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`). |
