1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().

This commit is contained in:
Amos Onn
2015-12-08 19:03:31 +02:00
committed by Tim Graham
parent 890938e756
commit 542b7f6c50
4 changed files with 83 additions and 1 deletions

View File

@@ -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)