diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 9adf148b6..870dd41db 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2393,10 +2393,10 @@ class Area(HierarchicalType, DocumentItem, MainItem):              name.append(town._generate_cached_label())              reference.append(town.numero_insee or slugify(town.name))          name = " / ".join(name) -        reference = f"{_('area')}-{'/'.join(reference)}" +        reference = f"area-{'/'.join(reference)}"          area, created = cls.objects.get_or_create(              reference=reference, -            defaults={"label": name} +            defaults={"label": name, "available": False}          )          area_content_type = ContentType.objects.get(app_label="ishtar_common", | 
