summaryrefslogtreecommitdiff
path: root/ishtar_common/management/commands/migrate_to_geo_v4.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-05 12:34:43 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-05 12:37:42 +0200
commit1fe2cb7325ddf709d4fba58fa22f3604055f2083 (patch)
treed2526bbee62a0e646ea8f3d1e89481300b89a818 /ishtar_common/management/commands/migrate_to_geo_v4.py
parentea9f65db6850600e21895603102e9a5983f2d2f6 (diff)
downloadIshtar-1fe2cb7325ddf709d4fba58fa22f3604055f2083.tar.bz2
Ishtar-1fe2cb7325ddf709d4fba58fa22f3604055f2083.zip
Fix french label for geo types (refs #5577)
Diffstat (limited to 'ishtar_common/management/commands/migrate_to_geo_v4.py')
-rw-r--r--ishtar_common/management/commands/migrate_to_geo_v4.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/management/commands/migrate_to_geo_v4.py b/ishtar_common/management/commands/migrate_to_geo_v4.py
index 11e4f7b76..77fcd2727 100644
--- a/ishtar_common/management/commands/migrate_to_geo_v4.py
+++ b/ishtar_common/management/commands/migrate_to_geo_v4.py
@@ -368,9 +368,12 @@ def migrate(log=True, process_number=1):
txt_idx=f"{model_slug}-outline",
defaults={"label": f"Contour {model_full_name}"},
)
+ lbl = f"Centre {model_full_name}"
+ if model == BaseFind:
+ lbl = "Point mobilier"
data_type_center, __ = models_common.GeoDataType.objects.get_or_create(
txt_idx=f"{model_slug}-center",
- defaults={"label": f"Centre {model_full_name}"},
+ defaults={"label": lbl},
)
q = model.objects.exclude(main_geodata__isnull=False)
launch_job(q.all(), model_name, process_number, _process_main)