new serializer for locationgroup
This commit is contained in:
parent
db938414fb
commit
cc2020e7c3
10 changed files with 58 additions and 57 deletions
|
@ -222,16 +222,7 @@ class LocationGroupSchema(LocationSchema, DjangoModelSchema):
|
|||
)
|
||||
priority: int = APIField() # todo: ???
|
||||
hierarchy: int = APIField() # todo: ???
|
||||
label_settings: Union[
|
||||
Annotated[LabelSettingsSchema, APIField(
|
||||
title="label settings",
|
||||
description="label settings to use for gruop members that don't have their own set",
|
||||
)],
|
||||
Annotated[None, APIField(
|
||||
title="null",
|
||||
description="no label settings set"
|
||||
)],
|
||||
] = APIField(
|
||||
label_settings: Optional[PositiveInt] = APIField(
|
||||
default=None,
|
||||
title="label settings",
|
||||
description=(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue