add todos
This commit is contained in:
parent
b47e97bb81
commit
920422d359
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,7 @@ class LocationSchema(WithAccessRestrictionSchema, TitledSchema, LocationSlugSche
|
|||
|
||||
@classmethod
|
||||
def get_overrides(cls, value) -> dict:
|
||||
# todo: move into model
|
||||
return {
|
||||
"locationtype": value._meta.model_name,
|
||||
}
|
||||
|
@ -231,6 +232,7 @@ class SpecificLocationSchema(LocationSchema):
|
|||
class WithGeometrySchema(BaseSchema):
|
||||
@classmethod
|
||||
def get_overrides(cls, value) -> dict:
|
||||
# todo: move into model
|
||||
value: GeometryMixin
|
||||
if "geometry" in value.get_deferred_fields() or value.geometry is None:
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue