summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
authorДилян Палаузов <Dilyan.Palauzov@db.com>2017-11-29 11:54:34 -0500
committerTim Graham <timograham@gmail.com>2017-12-04 10:35:23 -0500
commitd2afa5eb2308e672b6313876856e32e2561b90f3 (patch)
tree2b0700e6502222aca614a29497c327640adf2d64 /django/db/backends/postgresql/operations.py
parent3d94ee85005ff658f9419269a6719cbbf7903dab (diff)
downloaddjango-d2afa5eb2308e672b6313876856e32e2561b90f3.tar.gz
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index c4a61f7070..06a46f4303 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -132,7 +132,7 @@ class DatabaseOperations(BaseDatabaseOperations):
for sequence_info in sequences:
table_name = sequence_info['table']
column_name = sequence_info['column']
- if not (column_name and len(column_name) > 0):
+ if not column_name:
# This will be the case if it's an m2m using an autogenerated
# intermediate table (see BaseDatabaseIntrospection.sequence_list)
column_name = 'id'