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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/forms.py b/debug_toolbar/forms.py
index d795c17..5955bfc 100644
--- a/debug_toolbar/forms.py
+++ b/debug_toolbar/forms.py
@@ -2,6 +2,7 @@ from django import forms
from django.conf import settings
from django.core.exceptions import ValidationError
from django.utils.functional import cached_property
+from debug_toolbar.utils.sql import reformat_sql
try:
import json
@@ -75,7 +76,6 @@ class SQLSelectForm(forms.Form):
return hash
def reformat_sql(self):
- from debug_toolbar.panels.sql import reformat_sql
sql, params = self.cleaned_data['sql'], self.cleaned_data['params']
return reformat_sql(self.cursor.db.ops.last_executed_query(self.cursor, sql, params))