diff --git a/arho_feature_template/core/models.py b/arho_feature_template/core/models.py index e8b24c9..155ab13 100644 --- a/arho_feature_template/core/models.py +++ b/arho_feature_template/core/models.py @@ -97,7 +97,6 @@ def from_config_file( for group_name in feature_data.get("regulation_groups", []) if (group := cls.find_matching_group_config(group_name, regulation_group_libraries)) ], - lifecycles=[], plan_id=None, id_=None, ) @@ -553,7 +552,6 @@ class PlanFeature: name: str | None = None description: str | None = None regulation_groups: list[RegulationGroup] = field(default_factory=list) - lifecycles: list[LifeCycle] = field(default_factory=list) plan_id: int | None = None id_: str | None = None diff --git a/arho_feature_template/project/layers/plan_layers.py b/arho_feature_template/project/layers/plan_layers.py index 7a94ea2..124bd69 100644 --- a/arho_feature_template/project/layers/plan_layers.py +++ b/arho_feature_template/project/layers/plan_layers.py @@ -162,7 +162,6 @@ def model_from_feature(cls, feature: QgsFeature) -> PlanFeature: RegulationGroupLayer.get_feature_by_id(group_id) for group_id in RegulationGroupAssociationLayer.get_group_ids_for_feature(feature["id"], cls.name) ] - plan_lifecycle_features = [LifeCycleLayer.get_features_by_plan_id(feature["id"])] return PlanFeature( geom=feature.geometry(), @@ -173,9 +172,6 @@ def model_from_feature(cls, feature: QgsFeature) -> PlanFeature: regulation_groups=[ RegulationGroupLayer.model_from_feature(feat) for feat in regulation_group_features if feat is not None ], - lifecycles=[ - LifeCycleLayer.model_from_feature(feat) for feat in plan_lifecycle_features if feat is not None - ], plan_id=feature["plan_id"], id_=feature["id"], )