This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def CaseClass(case_class_name, **kwargs): | |
| types = {} | |
| for k, v in kwargs.items(): | |
| if type(v) is not type: | |
| raise ValueError("{} is not a type".format(v)) | |
| types[k] = v | |
| class CaseClassImpl(): | |
| initialized = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ModelView | |
| --------- | |
| # field1 (->Model1), field2 (->Model2) filtered by field1 values | |
| column_filter_by = ('field2') | |
| form_widget_args = { | |
| 'field2': { | |
| 'data-filter-by': 'field1', | |
| } | |
| } |