From a714bf5940b03e5b1db87159f5bf37679188131d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 26 Jan 2014 21:05:20 +0100 Subject: Fix stupid bug in previous commit. --- debug_toolbar/panels/sql/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3