mirror of
https://github.com/django/django.git
synced 2025-06-17 09:29:17 +00:00
[1.7.x] Fixed several flake8 errors
Backport of d17a4cb037 from master
This commit is contained in:
parent
a81282a512
commit
39e2ad4532
@ -163,8 +163,8 @@ class MigrationOptimizer(object):
|
|||||||
"""
|
"""
|
||||||
Folds a CreateModel and a DeleteModel into nothing.
|
Folds a CreateModel and a DeleteModel into nothing.
|
||||||
"""
|
"""
|
||||||
if operation.name.lower() == other.name.lower() and \
|
if (operation.name.lower() == other.name.lower() and
|
||||||
not operation.options.get("proxy", False):
|
not operation.options.get("proxy", False)):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def reduce_model_alter_delete(self, operation, other, in_between):
|
def reduce_model_alter_delete(self, operation, other, in_between):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user