pydent.models.field_value_mixins.FieldMixin

class pydent.models.field_value_mixins.FieldMixin[source]

Bases: object

Mixin for finding FieldType and FieldValue relationships.

__init__()

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

Methods

__init__

Initialize self.

find_field_parent(model_name, model_id)

Callback for finding operation_type or sample_type.

find_field_parent(model_name, model_id)[source]

Callback for finding operation_type or sample_type.

If parent_class does not match the expected nested model name (OperationType or SampleType), callback will return None