fairdm.utils.models#

Model mixins for FairDM models.

Module Contents#

Classes#

PolymorphicMixin

A mixin for polymorphic base models that know their own type_of root.

API#

class PolymorphicMixin[source]#

A mixin for polymorphic base models that know their own type_of root.

classmethod get_inheritance_chain()[source]#

Return the model classes from this class up to type_of, inclusive.

Returns: The inheritance chain, most specific class first.