BaseSchema.get_attribute

BaseSchema.get_attribute(obj, attr, default)

Defines how to pull values from an object to serialize.

New in version 2.0.0.

Changed in version 3.0.0a1: Changed position of obj and attr.