parent
a81282a512
commit
39e2ad4532
|
@ -163,8 +163,8 @@ class MigrationOptimizer(object):
|
|||
"""
|
||||
Folds a CreateModel and a DeleteModel into nothing.
|
||||
"""
|
||||
if operation.name.lower() == other.name.lower() and \
|
||||
not operation.options.get("proxy", False):
|
||||
if (operation.name.lower() == other.name.lower() and
|
||||
not operation.options.get("proxy", False)):
|
||||
return []
|
||||
|
||||
def reduce_model_alter_delete(self, operation, other, in_between):
|
||||
|
|
Loading…
Reference in New Issue