summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@sixmedia.com>2013-12-09 00:20:06 +0700
committerTim Graham <timograham@gmail.com>2013-12-10 15:12:48 -0500
commita2814846ca006b4fbf3a893ec52cd9d444b3a3eb (patch)
tree780498814e830e2b8ee6ac435575afdc2e8e63f6 /django/core
parent0873200e7f61315ad375061a3dc6d37b514ff985 (diff)
Fixed E124 pep8 warnings.
Diffstat (limited to 'django/core')
-rw-r--r--django/core/management/commands/testserver.py3
-rw-r--r--django/core/management/validation.py12
2 files changed, 8 insertions, 7 deletions
diff --git a/django/core/management/commands/testserver.py b/django/core/management/commands/testserver.py
index 182587b0f5..79f0ff5501 100644
--- a/django/core/management/commands/testserver.py
+++ b/django/core/management/commands/testserver.py
@@ -37,7 +37,8 @@ class Command(BaseCommand):
# multiple times.
shutdown_message = '\nServer stopped.\nNote that the test database, %r, has not been deleted. You can explore it on your own.' % db_name
use_threading = connection.features.test_db_allows_multiple_connections
- call_command('runserver',
+ call_command(
+ 'runserver',
addrport=addrport,
shutdown_message=shutdown_message,
use_reloader=False,
diff --git a/django/core/management/validation.py b/django/core/management/validation.py
index 5bf9413c20..6bdcf853d4 100644
--- a/django/core/management/validation.py
+++ b/django/core/management/validation.py
@@ -270,8 +270,7 @@ def get_validation_errors(outfile, app=None):
seen_to = True
if f.rel.through not in models.get_models(include_auto_created=True):
e.add(opts, "'%s' specifies an m2m relation through model "
- "%s, which has not been installed." % (f.name, f.rel.through)
- )
+ "%s, which has not been installed." % (f.name, f.rel.through))
signature = (f.rel.to, cls, f.rel.through)
if signature in seen_intermediary_signatures:
e.add(opts, "The model %s has two manually-defined m2m "
@@ -295,13 +294,14 @@ def get_validation_errors(outfile, app=None):
if not seen_related_fk or not seen_this_fk:
e.add(opts, "'%s' is a manually-defined m2m relation "
"through model %s, which does not have foreign keys "
- "to %s and %s" % (f.name, f.rel.through._meta.object_name,
- f.rel.to._meta.object_name, cls._meta.object_name)
+ "to %s and %s" % (
+ f.name, f.rel.through._meta.object_name,
+ f.rel.to._meta.object_name, cls._meta.object_name
+ )
)
elif isinstance(f.rel.through, six.string_types):
e.add(opts, "'%s' specifies an m2m relation through model %s, "
- "which has not been installed" % (f.name, f.rel.through)
- )
+ "which has not been installed" % (f.name, f.rel.through))
rel_opts = f.rel.to._meta
rel_name = f.related.get_accessor_name()