def on_analyze(cls, site): super(Lockable, cls).on_analyze(site) if cls.lockable_fields is None: cls.lockable_fields = cls._meta.get_fields() else: resolve_fields_list(cls, 'lockable_fields') cls.lockable_fields = set([f.name for f in cls.lockable_fields])
def class_init(cls): super(AbstractTable, cls).class_init() resolve_fields_list(cls, 'tablet_columns', set, {}) resolve_fields_list(cls, 'mobile_columns', set, {}) resolve_fields_list(cls, 'popin_columns', set, {}) if cls.model is not None: if not issubclass(cls.model, models.Model): if cls.model._lino_default_table is None: cls.model._lino_default_table = cls
def class_init(cls): super(AbstractTable, cls).class_init() resolve_fields_list(cls, 'tablet_columns', set, {}) resolve_fields_list(cls, 'mobile_columns', set, {}) resolve_fields_list(cls, 'popin_columns', set, {})