From 1fe2cb7325ddf709d4fba58fa22f3604055f2083 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Apr 2023 12:34:43 +0200 Subject: Fix french label for geo types (refs #5577) --- ishtar_common/management/commands/migrate_to_geo_v4.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/management') 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) -- cgit v1.2.3