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¶
Bases:
gws.base.model.related_field.Config
Configuration for related feature list field.
- fromColumn: str = ''¶
Key column in this table, primary key by default.
- toColumn: str¶
Foreign key column in the related model.
- toModel: str¶
Related model.
- class gws.plugin.model_field.related_feature_list.Object¶
Bases:
gws.plugin.model_field.related_multi_feature_list.Object
- configure_relationship()¶
- class gws.plugin.model_field.related_feature_list.Props¶