Skip to content

Commit 28fe97d

Browse files
authored
Update README.rst
without these edits, the example in this doc leads to NameError errors
1 parent 32c695e commit 28fe97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ You can use an ObjectField or a NestedField.
291291
292292
# documents.py
293293
294-
from django_elasticsearch_dsl import DocType, Index
295-
from .models import Car
294+
from django_elasticsearch_dsl import DocType, Index, fields
295+
from .models import Car, Manufacturer, Ad
296296
297297
car = Index('cars')
298298
car.settings(

0 commit comments

Comments
 (0)