summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-09-29 21:50:54 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-09-29 22:00:34 +0200
commit2075f52d4c30416bcd490fb3584561c6fa321ba7 (patch)
tree7c20dca7e2c68829ab613068ce6b0a56f11e4c45
parentad392818e9e11708ef1e930a300aaf25672f09cb (diff)
downloadIshtar-2075f52d4c30416bcd490fb3584561c6fa321ba7.tar.bz2
Ishtar-2075f52d4c30416bcd490fb3584561c6fa321ba7.zip
🐛 areas automatically created by operation with many towns are not available by default
-rw-r--r--changelog/en/changelog_2022-06-15.md2
-rw-r--r--changelog/fr/changelog_2023-01-25.md2
-rw-r--r--ishtar_common/models.py4
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",