Skip to content

Commit 8ab3d04

Browse files
committed
Move import to the top
1 parent 352ebed commit 8ab3d04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django_mongodb_backend/indexes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import itertools
2+
from collections import defaultdict
23

34
from django.db import NotSupportedError
45
from django.db.models import (
@@ -84,8 +85,6 @@ def create_mongodb_index(
8485
unique=False,
8586
column_prefix="",
8687
):
87-
from collections import defaultdict
88-
8988
if self.contains_expressions:
9089
return None
9190
kwargs = {}

0 commit comments

Comments
 (0)