From e8dc95eea78494a0e9b20e41a74728a0b1f77791 Mon Sep 17 00:00:00 2001 From: "Alexis A." Date: Mon, 18 Nov 2024 23:27:41 +0100 Subject: [PATCH] chore(project): optimise combined_emprise --- project/models/project_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/models/project_base.py b/project/models/project_base.py index c793e89cf..379eb93f1 100644 --- a/project/models/project_base.py +++ b/project/models/project_base.py @@ -75,7 +75,7 @@ class Status(models.TextChoices): ) name = models.CharField("Nom", max_length=100, validators=[is_alpha_validator]) - @property + @cached_property def combined_emprise(self) -> MultiPolygon: return self.land.mpoly