kopia lustrzana https://github.com/wagtail/wagtail
Fix typos in 1.3 release notes
rodzic
2b04ff9ba7
commit
60003da430
|
@ -23,16 +23,16 @@ Fields on related objects can now be indexed in Elasticsearch using the new ``in
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
class Book(models.Model, indexed.Indexed):
|
class Book(models.Model, index.Indexed):
|
||||||
...
|
...
|
||||||
|
|
||||||
search_fields = [
|
search_fields = [
|
||||||
indexed.SearchField('title'),
|
index.SearchField('title'),
|
||||||
indexed.FilterField('published_date'),
|
index.FilterField('published_date'),
|
||||||
|
|
||||||
indexed.RelatedFields('author', [
|
index.RelatedFields('author', [
|
||||||
indexed.SearchField('name'),
|
index.SearchField('name'),
|
||||||
indexed.FilterField('date_of_birth'),
|
index.FilterField('date_of_birth'),
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue