diff options
author | Tim Graham <timograham@gmail.com> | 2016-03-28 18:33:29 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-04-08 09:51:06 -0400 |
commit | df8d8d4292684d6ffa7474f1e201aed486f02b53 (patch) | |
tree | c661bf9b33de5288afe4f63347a2a9c768ef98eb /django/db/backends/postgresql/operations.py | |
parent | 2956e2f5e3f63d279f5dae2a995265364d3e6db1 (diff) | |
download | django-df8d8d4292684d6ffa7474f1e201aed486f02b53.tar.gz |
Fixed E128 flake8 warnings in django/.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index 41d3a7a230..f0715a24e3 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -139,11 +139,11 @@ class DatabaseOperations(BaseDatabaseOperations): # This will be the case if it's an m2m using an autogenerated # intermediate table (see BaseDatabaseIntrospection.sequence_list) column_name = 'id' - sql.append("%s setval(pg_get_serial_sequence('%s','%s'), 1, false);" % - (style.SQL_KEYWORD('SELECT'), + sql.append("%s setval(pg_get_serial_sequence('%s','%s'), 1, false);" % ( + style.SQL_KEYWORD('SELECT'), style.SQL_TABLE(self.quote_name(table_name)), - style.SQL_FIELD(column_name)) - ) + style.SQL_FIELD(column_name), + )) return sql def tablespace_sql(self, tablespace, inline=False): |