kopia lustrzana https://github.com/wagtail/wagtail
add new field types (#11861)
rodzic
2d075177c4
commit
951e41ae26
|
@ -40,6 +40,7 @@ Changelog
|
|||
* When editing settings (contrib) use the same icon in the editing view that was declared when registering the setting (Vince Salvino, Rohit Sharma)
|
||||
* Populate django-treebeard cache during page routing to improve performance of `get_parent` (Nigel van Keulen)
|
||||
* Add a new user profile preference to configure user interface information density (Thibaud Colas)
|
||||
* Add additional field types to Elasticsearch mapping (scott-8)
|
||||
* Fix: Fix typo in `__str__` for MySQL search index (Jake Howard)
|
||||
* Fix: Ensure that unit tests correctly check for migrations in all core Wagtail apps (Matt Westcott)
|
||||
* Fix: Correctly handle `date` objects on `human_readable_date` template tag (Jhonatan Lopes)
|
||||
|
|
|
@ -65,6 +65,7 @@ This feature was developed by Ben Enright and Thibaud Colas.
|
|||
* Update `DOCUMENT_PASSWORD_REQUIRED_TEMPLATE` setting to `WAGTAILDOCS_PASSWORD_REQUIRED_TEMPLATE` with deprecation of previous naming (Saksham Misra, LB (Ben) Johnston)
|
||||
* When editing settings (contrib) use the same icon in the editing view that was declared when registering the setting (Vince Salvino, Rohit Sharma)
|
||||
* Populate django-treebeard cache during page routing to improve performance of `get_parent` (Nigel van Keulen)
|
||||
* Add additional field types to Elasticsearch mapping (scott-8)
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
|
|
@ -52,6 +52,8 @@ class Elasticsearch7Mapping:
|
|||
|
||||
type_map = {
|
||||
"AutoField": "integer",
|
||||
"SmallAutoField": "integer",
|
||||
"BigAutoField": "long",
|
||||
"BinaryField": "binary",
|
||||
"BooleanField": "boolean",
|
||||
"CharField": "string",
|
||||
|
@ -69,10 +71,12 @@ class Elasticsearch7Mapping:
|
|||
"NullBooleanField": "boolean",
|
||||
"PositiveIntegerField": "integer",
|
||||
"PositiveSmallIntegerField": "integer",
|
||||
"PositiveBigIntegerField": "long",
|
||||
"SlugField": "string",
|
||||
"SmallIntegerField": "integer",
|
||||
"TextField": "string",
|
||||
"TimeField": "date",
|
||||
"URLField": "string",
|
||||
}
|
||||
|
||||
keyword_type = "keyword"
|
||||
|
|
Ładowanie…
Reference in New Issue