File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
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.documents import Document
87
+ from django_elasticsearch_dsl import Document
88
88
from django_elasticsearch_dsl.registries import registry
89
89
from .models import Car
90
90
@@ -208,8 +208,7 @@ like this:
208
208
209
209
# documents.py
210
210
211
- from django_elasticsearch_dsl import fields
212
- from django_elasticsearch_dsl.documents import Document
211
+ from django_elasticsearch_dsl import Document, fields
213
212
214
213
# ... #
215
214
@@ -288,8 +287,7 @@ You can use an ObjectField or a NestedField.
288
287
289
288
# documents.py
290
289
291
- from django_elasticsearch_dsl import fields
292
- from django_elasticsearch_dsl.documents import Document
290
+ from django_elasticsearch_dsl import Document, fields
293
291
from .models import Car, Manufacturer, Ad
294
292
295
293
@registry.register_document
@@ -422,7 +420,7 @@ want to put in this Elasticsearch index and also add the `registry.register_docu
422
420
423
421
# documents.py
424
422
from elasticsearch_dsl import Index
425
- from django_elasticsearch_dsl.documents import Document
423
+ from django_elasticsearch_dsl import Document
426
424
from .models import Car, Manufacturer
427
425
428
426
# The name of your index
Original file line number Diff line number Diff line change 1
1
from django .utils .module_loading import autodiscover_modules
2
2
3
- from .documents import DocType # noqa
3
+ from .documents import Document # noqa
4
4
from .indices import Index # noqa
5
5
from .fields import * # noqa
6
6
You can’t perform that action at this time.
0 commit comments