summaryrefslogtreecommitdiff
path: root/ishtar_common/management/commands/migrate_find_container_v4_2.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-12 08:30:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-12 17:24:41 +0100
commit0b796e98bf8c196b3ec5005720925178782c046d (patch)
treeb98b84f9cc2db3b8d782a4c974878640235051d9 /ishtar_common/management/commands/migrate_find_container_v4_2.py
parentd317f541575a7ef59e7b06df5edc5b9c1560512f (diff)
downloadIshtar-0b796e98bf8c196b3ec5005720925178782c046d.tar.bz2
Ishtar-0b796e98bf8c196b3ec5005720925178782c046d.zip
🐛 treatment container history: fix history on container move (refs #6532)
Diffstat (limited to 'ishtar_common/management/commands/migrate_find_container_v4_2.py')
-rw-r--r--ishtar_common/management/commands/migrate_find_container_v4_2.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ishtar_common/management/commands/migrate_find_container_v4_2.py b/ishtar_common/management/commands/migrate_find_container_v4_2.py
index ac167bc6a..d40c74b61 100644
--- a/ishtar_common/management/commands/migrate_find_container_v4_2.py
+++ b/ishtar_common/management/commands/migrate_find_container_v4_2.py
@@ -34,7 +34,7 @@ def migrate(log=True):
)
q = Find.objects.filter(Q(container__isnull=False) | Q(container_ref__isnull=False)).filter(
- container_fisrt_full_location=""
+ Q(container_fisrt_full_location="") | Q(container_ref_fisrt_full_location="")
)
total = q.count()
ref_time = datetime.datetime.now()
@@ -44,8 +44,6 @@ def migrate(log=True):
write_output(base_lbl, idx, total, ref_time)
if find.update_full_location():
changed.append(("Find", str(find), find.pk))
- find.no_post_process()
- find.save()
if not quiet:
sys.stdout.write(