1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

[1.7.x] Fixed several flake8 errors

Backport of d17a4cb037 from master
This commit is contained in:
Alex Gaynor
2014-06-15 20:45:15 -04:00
committed by Tim Graham
parent a81282a512
commit 39e2ad4532
3 changed files with 7 additions and 7 deletions

View File

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