diff options
| author | Dave Hall <dave@etianen.com> | 2014-09-01 10:30:00 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-02 08:06:44 -0400 |
| commit | e03b7940e564a6a88269b3030e43354baabcd669 (patch) | |
| tree | 3e78b3dfe4bf69edd2691334793225fd51267309 /django | |
| parent | 03c1a6cb80ef03f16d60e4d34ed61b17497effd0 (diff) | |
Fixed #22918 -- Fixed SeparateDatabaseAndState crash
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/migrations/operations/special.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/migrations/operations/special.py b/django/db/migrations/operations/special.py index b7ffbbbd29..fe5f00a012 100644 --- a/django/db/migrations/operations/special.py +++ b/django/db/migrations/operations/special.py @@ -24,7 +24,7 @@ class SeparateDatabaseAndState(Operation): for database_operation in self.database_operations: to_state = from_state.clone() database_operation.state_forwards(app_label, to_state) - database_operation.database_forwards(self, app_label, schema_editor, from_state, to_state) + database_operation.database_forwards(app_label, schema_editor, from_state, to_state) from_state = to_state def database_backwards(self, app_label, schema_editor, from_state, to_state): @@ -36,7 +36,7 @@ class SeparateDatabaseAndState(Operation): dbop.state_forwards(app_label, to_state) from_state = base_state.clone() database_operation.state_forwards(app_label, from_state) - database_operation.database_backwards(self, app_label, schema_editor, from_state, to_state) + database_operation.database_backwards(app_label, schema_editor, from_state, to_state) def describe(self): return "Custom state/database change combination" |
