Skip to content

Commit 80e94bd

Browse files
committed
Fix #445 -- UnicodeDecodeError in SQLSelectForm.
1 parent d4c340c commit 80e94bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debug_toolbar/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def reformat_sql(self):
7777
return reformat_sql(self.cleaned_data['sql'])
7878

7979
def make_hash(self, data):
80-
params = force_text(settings.SECRET_KEY) + data['sql'] + data['params']
80+
params = (force_text(settings.SECRET_KEY) +
81+
force_text(data['sql']) + force_text(data['params']))
8182
return hashlib.sha1(params.encode('utf-8')).hexdigest()
8283

8384
@property

0 commit comments

Comments
 (0)