aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAymeric Augustin2014-01-26 21:05:20 +0100
committerAymeric Augustin2014-01-26 21:05:20 +0100
commita714bf5940b03e5b1db87159f5bf37679188131d (patch)
treecc3c015b2863a8602a6be5da097826a9d4f87d74
parent55636f20076c4c9cd444b8dc7dc309fda2e5e7ec (diff)
downloaddjango-debug-toolbar-a714bf5940b03e5b1db87159f5bf37679188131d.tar.bz2
Fix stupid bug in previous commit.
-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):