From 3d0467d9a4394c4b994a802e6e861ff2562dbb2b Mon Sep 17 00:00:00 2001 From: Vladislav Poluhin Date: Wed, 24 Apr 2013 11:14:34 +0800 Subject: Got rid of the circular imports --- debug_toolbar/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/forms.py') 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)) -- cgit v1.2.3