class ParentRecord(records.Record): __metaclass__ = records.RecordMetaclass attr_1 = records.RecordAttribute() attr_2 = records.RecordAttribute(is_reference=True, default=None)
class TestRecord(records.Record): attr_1 = records.RecordAttribute(is_reference=True) attr_2 = records.RecordAttribute(is_reference=False) attr_3 = records.RecordAttribute(is_reference=True)
class ChildRecord(ParentRecord): attr_3 = records.RecordAttribute(is_reference=True)
class ParentRecord(records.Record, metaclass=records.RecordMetaclass): attr_1 = records.RecordAttribute() attr_2 = records.RecordAttribute(is_reference=True, default=None)