aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/forms.py')
-rw-r--r--debug_toolbar/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/forms.py b/debug_toolbar/forms.py
index aad308a..60d339c 100644
--- a/debug_toolbar/forms.py
+++ b/debug_toolbar/forms.py
@@ -6,7 +6,7 @@ import hashlib
from django import forms
from django.conf import settings
from django.db import connections
-from django.utils.encoding import smart_str
+from django.utils.encoding import smart_bytes
from django.utils.functional import cached_property
from django.core.exceptions import ValidationError
@@ -77,7 +77,7 @@ class SQLSelectForm(forms.Form):
def make_hash(self, data):
params = settings.SECRET_KEY + data['sql'] + data['params']
- return hashlib.sha1(smart_str(params)).hexdigest()
+ return hashlib.sha1(smart_bytes(params)).hexdigest()
@property
def connection(self):