diff options
-rw-r--r-- | changelog/en/changelog_2022-06-15.md | 2 | ||||
-rw-r--r-- | changelog/fr/changelog_2023-01-25.md | 2 | ||||
-rw-r--r-- | ishtar_common/models.py | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md index 64423d2bf..eea0e1377 100644 --- a/changelog/en/changelog_2022-06-15.md +++ b/changelog/en/changelog_2022-06-15.md @@ -2,7 +2,9 @@ v4.0.59 - 2023- -------------------- ### Bug fixes ### +- fix missing translations - remove "BASE_URL" on image sheet (unnecessary locally and buggy on remote access) +- areas automatically created by operation with many towns are not "available" by default v4.0.58 - 2023-09-25 -------------------- diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md index 8cec7ae9a..2f158e36a 100644 --- a/changelog/fr/changelog_2023-01-25.md +++ b/changelog/fr/changelog_2023-01-25.md @@ -2,7 +2,9 @@ v4.0.59 - 2023- -------------------- ### Corrections de dysfonctionnements ### +- correction des traductions manquantes - suppression de "BASE_URL" sur les fiches images (non nécessaire localement et source de dysfonctionnements en accès distant) +- les zones créées automatiquement par les opérations comportant plusieurs villes ne sont pas "disponibles" par défaut v4.0.58 - 2023-09-26 -------------------- 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", |