pydent.relationships.BaseRelationshipAccessor

class pydent.relationships.BaseRelationshipAccessor(name, field, accessor, deserialized_accessor, default=<Placeholders.CALLBACK: 3>)[source]

Bases: pydent.marshaller.descriptors.RelationshipAccessor

Python descriptor that is returned by a field during attribute access.

__init__(name, field, accessor, deserialized_accessor, default=<Placeholders.CALLBACK: 3>)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(name, field, accessor, …[, default])

Initialize self.

get_val(obj)

Attributes

HOLDER

accessor

default

deserialized_accessor

field

name