From fc79c3fb3daf64b911b1ff8fed30f73c56630416 Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Wed, 12 Mar 2014 20:34:05 +0200 Subject: Flake8 corrections --- django/db/models/sql/compiler.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'django/db/models/sql') diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 5636f344df..e166492896 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -956,10 +956,9 @@ class SQLUpdateCompiler(SQLCompiler): val = val.prepare_database_save(field) else: raise TypeError("Database is trying to update a relational field " - "of type %s with a value of type %s. Make sure " - "you are setting the correct relations" % - (field.__class__.__name__, - val.__class__.__name__)) + "of type %s with a value of type %s. Make sure " + "you are setting the correct relations" % + (field.__class__.__name__, val.__class__.__name__)) else: val = field.get_db_prep_save(val, connection=self.connection) -- cgit v1.3