gws.plugin.model_field.related_feature_list
¶
Related Feature List field
Represents a parent->child 1:M relationship to another model:
+--------------+ +-------------+
| parent table | | child table |
+--------------+ +-------------+
| key |-----<<| parent_key |
+--------------+ +-------------+
The value of the field is a list of child features.
This object is implemented as a “related_multi_feature_list” with a single target model.
Source code: gws.plugin.model_field.related_feature_list
Package Contents¶
- class gws.plugin.model_field.related_feature_list.Config(*args, **kwargs)¶
Bases:
gws.base.model.related_field.Config
Basic config with permissions.
- fromColumn: str = ''¶
key column in this table, primary key by default
- toModel: str¶
related model
- toColumn: str¶
foreign key column in the related model
- class gws.plugin.model_field.related_feature_list.Props(*args, **kwargs)¶
Bases:
gws.base.model.related_field.Props
Object properties.
- class gws.plugin.model_field.related_feature_list.Object¶
Bases:
gws.plugin.model_field.related_multi_feature_list.Object
Model field.
- configure_relationship()¶