Skip to content

Commit b7c4b4a

Browse files
committed
fix: remove duplicate import !minor
1 parent 3541dcd commit b7c4b4a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

haystack/query.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from django.utils import six
99

10-
from haystack import connections
10+
from haystack import connection_router, connections
1111
from haystack.backends import SQ
1212
from haystack.constants import DEFAULT_OPERATOR, ITERATOR_LOAD_PER_QUERY, REPR_OUTPUT_SIZE
1313
from haystack.exceptions import NotHandled
@@ -41,8 +41,6 @@ def __init__(self, using=None, query=None):
4141
self.log = logging.getLogger('haystack')
4242

4343
def _determine_backend(self):
44-
from haystack import connection_router, connections
45-
4644
# A backend has been manually selected. Use it instead.
4745
if self._using is not None:
4846
self.query = connections[self._using].get_query()

0 commit comments

Comments
 (0)