Skip to content

Commit 86be3d4

Browse files
committed
Add docstring
1 parent 78e4d75 commit 86be3d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

django_mongodb_backend/indexes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from collections import defaultdict
2+
13
from django.db import NotSupportedError
24
from django.db.models import Index
35
from django.db.models.lookups import BuiltinLookup
@@ -61,8 +63,7 @@ def where_node_idx(self, compiler, connection):
6163

6264

6365
def get_pymongo_index_model(self, model, schema_editor, field=None, unique=False, column_prefix=""):
64-
from collections import defaultdict
65-
66+
"""Return a pymongo IndexModel for this Django Index."""
6667
if self.contains_expressions:
6768
return None
6869
kwargs = {}

0 commit comments

Comments
 (0)