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 LazyProperty on a model class, this adds a corresponding attr.field in which to temporarily store a raw dict value that will later be converted into a model object.