diff options
Diffstat (limited to 'ishtar_common/management')
-rw-r--r-- | ishtar_common/management/commands/migrate_to_geo_v4.py | 5 |
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) |