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
8484
8585 # documents.py
8686
87- from django_elasticsearch_dsl import Document
87+ from django_elasticsearch_dsl.documents import Document
8888 from django_elasticsearch_dsl.registries import registry
8989 from .models import Car
9090
@@ -208,7 +208,8 @@ like this:
208208
209209 # documents.py
210210
211- from django_elasticsearch_dsl import Document, fields
211+ from django_elasticsearch_dsl import fields
212+ from django_elasticsearch_dsl.documents import Document
212213
213214 # ... #
214215
@@ -287,7 +288,8 @@ You can use an ObjectField or a NestedField.
287288
288289 # documents.py
289290
290- from django_elasticsearch_dsl import Document, fields
291+ from django_elasticsearch_dsl import fields
292+ from django_elasticsearch_dsl.documents import Document
291293 from .models import Car, Manufacturer, Ad
292294
293295 @registry.register_document
@@ -420,7 +422,7 @@ want to put in this Elasticsearch index and also add the `registry.register_docu
420422
421423 # documents.py
422424 from elasticsearch_dsl import Index
423- from django_elasticsearch_dsl import Document
425+ from django_elasticsearch_dsl.documents import Document
424426 from .models import Car, Manufacturer
425427
426428 # The name of your index
You can’t perform that action at this time.
0 commit comments