diff options
-rw-r--r-- | CHANGES.md | 7 | ||||
-rw-r--r-- | archaeological_context_records/models.py | 1 | ||||
-rw-r--r-- | ishtar_common/management/commands/regenerate_search_vector_cached_label.py | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/CHANGES.md b/CHANGES.md index 71f1e6ed1..b0e2ca01a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,13 @@ --- title: Ishtar changelog -date: 2022-11-21 +date: 2022-11-22 --- +WIP +--- + +### Improvements ### +- Context record: add Unit to indexed search ### Bug fixes ### - Fix redirect URL after logout diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 686b167b4..84e160480 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -643,6 +643,7 @@ class ContextRecord( SearchVectorConfig("filling", "local"), SearchVectorConfig("datings_comment", "local"), SearchVectorConfig("identification__label"), + SearchVectorConfig("unit__label"), SearchVectorConfig("activity__label"), ] M2M_SEARCH_VECTORS = [ diff --git a/ishtar_common/management/commands/regenerate_search_vector_cached_label.py b/ishtar_common/management/commands/regenerate_search_vector_cached_label.py index ab7f134ff..1b9dd24d1 100644 --- a/ishtar_common/management/commands/regenerate_search_vector_cached_label.py +++ b/ishtar_common/management/commands/regenerate_search_vector_cached_label.py @@ -68,12 +68,6 @@ class Command(BaseCommand): obj = model.objects.get(pk=obj_id['pk']) obj.skip_history_when_saving = True obj._no_move = True - if hasattr(obj, "point_source") and obj.point_source in ( - "M", "T"): - obj.point = None - obj.point_2d = None - obj.x = None - obj.y = None cmsg = "\r{} {}/{}".format(msg, idx + 1, ln) if not quiet: sys.stdout.write(cmsg) |