1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed several flake8 errors

This commit is contained in:
Alex Gaynor 2014-06-15 20:45:15 -04:00
parent d7576bb27a
commit d17a4cb037
3 changed files with 7 additions and 7 deletions

View File

@ -425,7 +425,7 @@ class MigrationAutodetector(object):
options=model_state.options,
bases=model_state.bases,
),
dependencies = dependencies,
dependencies=dependencies,
)
# Generate operations for each related field
for name, field in sorted(related_fields.items()):
@ -524,7 +524,7 @@ class MigrationAutodetector(object):
bases=model_state.bases,
),
# Depend on the deletion of any possible non-proxy version of us
dependencies = dependencies,
dependencies=dependencies,
)
def generate_deleted_models(self):
@ -815,7 +815,7 @@ class MigrationAutodetector(object):
name=model_name,
order_with_respect_to=new_model_state.options.get('order_with_respect_to', None),
),
dependencies = dependencies,
dependencies=dependencies,
)
def arrange_for_graph(self, changes, graph):

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

View File

@ -237,8 +237,8 @@ class OperationTests(MigrationTestBase):
operation = migrations.CreateModel(
"ProxyPony",
[],
options = {"proxy": True},
bases = ("test_crprmo.Pony", ),
options={"proxy": True},
bases=("test_crprmo.Pony", ),
)
new_state = project_state.clone()
operation.state_forwards("test_crprmo", new_state)