File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ It required to defined ``Document`` class in ``documents.py`` in your app direc
84
84
85
85
# documents.py
86
86
87
- from django_elasticsearch_dsl import Document
87
+ from django_elasticsearch_dsl.documents import Document
88
88
from django_elasticsearch_dsl.registries import registry
89
89
from .models import Car
90
90
@@ -208,7 +208,8 @@ like this:
208
208
209
209
# documents.py
210
210
211
- from django_elasticsearch_dsl import Document, fields
211
+ from django_elasticsearch_dsl import fields
212
+ from django_elasticsearch_dsl.documents import Document
212
213
213
214
# ... #
214
215
@@ -287,7 +288,8 @@ You can use an ObjectField or a NestedField.
287
288
288
289
# documents.py
289
290
290
- from django_elasticsearch_dsl import Document, fields
291
+ from django_elasticsearch_dsl import fields
292
+ from django_elasticsearch_dsl.documents import Document
291
293
from .models import Car, Manufacturer, Ad
292
294
293
295
@registry.register_document
@@ -420,7 +422,7 @@ want to put in this Elasticsearch index and also add the `registry.register_docu
420
422
421
423
# documents.py
422
424
from elasticsearch_dsl import Index
423
- from django_elasticsearch_dsl import Document
425
+ from django_elasticsearch_dsl.documents import Document
424
426
from .models import Car, Manufacturer
425
427
426
428
# The name of your index
You can’t perform that action at this time.
0 commit comments