Update django.rst
#278: added missing @classmethod to extract_document.
This commit is contained in:
Родитель
bcec897a60
Коммит
fa519e948f
|
@ -189,6 +189,7 @@ Here's one that uses `Indexable` and handles indexing:
|
|||
}
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def extract_document(cls, obj_id, obj=None):
|
||||
"""Converts this instance into an Elasticsearch document"""
|
||||
if obj is None:
|
||||
|
|
Загрузка…
Ссылка в новой задаче