add_lazy_attrs¶
- pyinaturalist.models.add_lazy_attrs(cls, fields)¶
A field transformer to do some post-processing on a model class while it’s being created. For each
LazyPropertyon a model class, this adds a correspondingattr.fieldin which to temporarily store a raw dict value that will later be converted into a model object.