diff options
| author | Amos Onn <amosonn@gmail.com> | 2015-12-08 19:03:31 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-09 11:08:17 -0500 |
| commit | 0772bffd4a2feac3928924a8427f372ab3ec6919 (patch) | |
| tree | 751e4ce1d51c2b1061036302113e6ce7161600c2 /django | |
| parent | 4eb9a1cf2a4891cf33a95f9b525993fd27b0bc01 (diff) | |
[1.8.x] Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
Backport of 542b7f6c50df18f2aa201cf1de81577c1bee643c from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/migrations/operations/special.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/migrations/operations/special.py b/django/db/migrations/operations/special.py index e1ce9a07b5..6bbae602db 100644 --- a/django/db/migrations/operations/special.py +++ b/django/db/migrations/operations/special.py @@ -50,7 +50,7 @@ class SeparateDatabaseAndState(Operation): to_state = base_state.clone() for dbop in self.database_operations[:-(pos + 1)]: dbop.state_forwards(app_label, to_state) - from_state = base_state.clone() + from_state = to_state.clone() database_operation.state_forwards(app_label, from_state) database_operation.database_backwards(app_label, schema_editor, from_state, to_state) |
