aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/sql/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/panels/sql/forms.py')
-rw-r--r--debug_toolbar/panels/sql/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/sql/forms.py b/debug_toolbar/panels/sql/forms.py
index b4c31cc..582f611 100644
--- a/debug_toolbar/panels/sql/forms.py
+++ b/debug_toolbar/panels/sql/forms.py
@@ -81,7 +81,7 @@ class SQLSelectForm(forms.Form):
# Replace lines endings with spaces to preserve the hash value
# even when the browser normalizes \r\n to \n in inputs.
items = [force_text(' '.join(item.splitlines())) for item in items]
- return hashlib.sha1(sum(items, '').encode('utf-8')).hexdigest()
+ return hashlib.sha1(''.join(items).encode('utf-8')).hexdigest()
@property
def connection(self):