diff options
-rw-r--r-- | CHANGES.md | 7 | ||||
-rw-r--r-- | ishtar_common/management/commands/migrate_to_geo_v4.py | 6 | ||||
-rw-r--r-- | ishtar_common/version.py | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/CHANGES.md b/CHANGES.md index e5ff39bb4..46a506b4c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,12 +1,12 @@ --- title: Ishtar changelog -date: 2022-07-18 +date: 2022-07-22 --- Ishtar changelog ================ -v4.0.10 - 2022-07-XXXXXXXXXXX +v4.0.10 - 2022-07-22 -------------------- ### Features ### @@ -16,6 +16,9 @@ v4.0.10 - 2022-07-XXXXXXXXXXX ### Bug fix ### - Sheet document - fix permalink content +- migrate_to_geo_v4: + - fix migration of item multi_polygon_source_item and point_source_item + - fix "Contour" label v4.0.9 - 2022-07-21 ------------------- diff --git a/ishtar_common/management/commands/migrate_to_geo_v4.py b/ishtar_common/management/commands/migrate_to_geo_v4.py index 1b2a2dadc..63a074363 100644 --- a/ishtar_common/management/commands/migrate_to_geo_v4.py +++ b/ishtar_common/management/commands/migrate_to_geo_v4.py @@ -174,7 +174,8 @@ def _process_main(obj): ) obj_verbose_names = cls_labels[obj.__class__.__name__] if obj.multi_polygon_source == "P" and obj.multi_polygon \ - and obj.multi_polygon_source_item in obj_verbose_names: + and (obj.multi_polygon_source_item in obj_verbose_names or + obj.multi_polygon_source_item in (None, "")): attrs = { "name": f"{_(model_name.capitalize())}{_(':')} {str(obj)}", "source_content_type": model_content_type, @@ -195,7 +196,8 @@ def _process_main(obj): ] ) if obj.point_source == "P" and obj.point_2d \ - and obj.point_source_item in obj_verbose_names: + and (obj.point_source_item in obj_verbose_names or + obj.point_source_item in (None, "")): if obj.x and obj.y: attrs = { "name": f"{_(model_name.capitalize())}{_(':')} {str(obj)}", diff --git a/ishtar_common/version.py b/ishtar_common/version.py index d7c8dd304..773944beb 100644 --- a/ishtar_common/version.py +++ b/ishtar_common/version.py @@ -1,5 +1,5 @@ -# 4.0.9 -VERSION = (4, 0, 9) +# 4.0.10 +VERSION = (4, 0, 10) def get_version(): |