Пример #1
0
class ParentRecord(records.Record):
    __metaclass__ = records.RecordMetaclass

    attr_1 = records.RecordAttribute()
    attr_2 = records.RecordAttribute(is_reference=True, default=None)
Пример #2
0
 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)
Пример #3
0
class ChildRecord(ParentRecord):
    attr_3 = records.RecordAttribute(is_reference=True)
Пример #4
0
class ParentRecord(records.Record, metaclass=records.RecordMetaclass):
    attr_1 = records.RecordAttribute()
    attr_2 = records.RecordAttribute(is_reference=True, default=None)