diff options
| author | Shai Berger <shai@platonix.com> | 2014-03-12 20:34:05 +0200 |
|---|---|---|
| committer | Shai Berger <shai@platonix.com> | 2014-03-12 20:34:05 +0200 |
| commit | fc79c3fb3daf64b911b1ff8fed30f73c56630416 (patch) | |
| tree | d75a8895d8264ee8c3aced02c0ac8049d5f2018d /django | |
| parent | d181384e5f01e9d23fd9872b2cb532e0d70249b6 (diff) | |
Flake8 corrections
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/sql/compiler.py | 7 |
1 files changed, 3 insertions, 4 deletions
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) |
