Skip to content

Commit

Permalink
feat(combined_emprise): add cache to field
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig committed Nov 5, 2024
1 parent b8b22d7 commit bc1edfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/models/project_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Status(models.TextChoices):
)
name = models.CharField("Nom", max_length=100, validators=[is_alpha_validator])

@cached_property
@property
def combined_emprise(self) -> MultiPolygon:
cache_key = f"project/{self.id}/combined_emprise"
if cache.has_key(cache_key):
Expand Down

0 comments on commit bc1edfd

Please sign in to comment.