('process_step_suppressions', 'process',
'suppressed_steps', 0)]
to_search = ['title.newest', 'description.newest']
+ can_create_by_id = True
def __init__(self, id_: int | None, calendarize: bool = False) -> None:
BaseModel.__init__(self, id_)
def as_dict(self) -> dict[str, object]:
"""Return self as (json.dumps-coompatible) dict."""
d = super().as_dict
- d['explicit_steps'] = [s.as_dict for s in self.explicit_steps]
- d['suppressed_steps'] = [s.as_dict for s in self.suppressed_steps]
+ assert isinstance(d['_library'], dict)
+ d['explicit_steps'] = [s.as_dict_into_reference(d['_library'])
+ for s in self.explicit_steps]
return d
@classmethod