add add_search to api schema

This commit is contained in:
Laura Klünder 2023-11-24 16:53:56 +01:00
parent 226ddc92a1
commit 3fcb58b4e3

View file

@ -76,8 +76,11 @@ class LocationSchema(WithAccessRestrictionSchema, TitledSchema, LocationSlugSche
can_describe: bool = APIField(
title="can describe locations",
)
# todo: add_search
add_search: Optional[str] = APIField(
None,
title="more data for search index, only set when looking for searchable locations"
)
class LabelSettingsSchema(DjangoModelSchema): # todo: add titles back in here
"""