We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1390c40 + d591337 commit 59fa751Copy full SHA for 59fa751
debug_toolbar/forms.py
@@ -1,5 +1,6 @@
1
from django import forms
2
from django.conf import settings
3
+from django.utils.encoding import smart_str
4
from django.core.exceptions import ValidationError
5
6
from debug_toolbar.utils.functional import cached_property
@@ -82,7 +83,7 @@ def reformat_sql(self):
82
83
84
def make_hash(self, data):
85
params = settings.SECRET_KEY + data['sql'] + data['params']
- return sha1(params).hexdigest()
86
+ return sha1(smart_str(params)).hexdigest()
87
88
@property
89
def connection(self):
0 commit comments