diff options
| author | Vladislav Poluhin | 2013-04-24 11:14:34 +0800 | 
|---|---|---|
| committer | Vladislav Poluhin | 2013-04-24 11:14:34 +0800 | 
| commit | 3d0467d9a4394c4b994a802e6e861ff2562dbb2b (patch) | |
| tree | 0b2aefc7b73ffbbe94e2505bbac01e31d99c2166 /debug_toolbar/forms.py | |
| parent | e85dfe8ef37d6d99ee482fbd9ac3375ee86253ac (diff) | |
| download | django-debug-toolbar-3d0467d9a4394c4b994a802e6e861ff2562dbb2b.tar.bz2 | |
Got rid of the circular imports
Diffstat (limited to 'debug_toolbar/forms.py')
| -rw-r--r-- | debug_toolbar/forms.py | 2 | 
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)) | 
