Пример #1
0
 def is_default(cls):
     return (    SimpleModel.is_default(cls)
             and cls.Attributes.gt == Decimal.Attributes.gt
             and cls.Attributes.ge == Decimal.Attributes.ge
             and cls.Attributes.lt == Decimal.Attributes.lt
             and cls.Attributes.le == Decimal.Attributes.le
         )
Пример #2
0
 def is_default(cls):
     return (SimpleModel.is_default(cls)
             and cls.Attributes.gt == Decimal.Attributes.gt
             and cls.Attributes.ge == Decimal.Attributes.ge
             and cls.Attributes.lt == Decimal.Attributes.lt
             and cls.Attributes.le == Decimal.Attributes.le)
Пример #3
0
 def is_default(cls):
     return (    SimpleModel.is_default(cls)
             and cls.Attributes.min_len == Unicode.Attributes.min_len
             and cls.Attributes.max_len == Unicode.Attributes.max_len
             and cls.Attributes.pattern == Unicode.Attributes.pattern)
Пример #4
0
 def is_default(cls):
     return (SimpleModel.is_default(cls)
             and cls.Attributes.min_len == String.Attributes.min_len
             and cls.Attributes.max_len == String.Attributes.max_len
             and cls.Attributes.pattern == String.Attributes.pattern)