add add_search to api schema
This commit is contained in:
parent
226ddc92a1
commit
3fcb58b4e3
1 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,10 @@ class LocationSchema(WithAccessRestrictionSchema, TitledSchema, LocationSlugSche
|
||||||
can_describe: bool = APIField(
|
can_describe: bool = APIField(
|
||||||
title="can describe locations",
|
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
|
class LabelSettingsSchema(DjangoModelSchema): # todo: add titles back in here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue