diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-12 08:30:22 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-12 08:30:22 +0100 |
| commit | 10177fbddd94fd4ca098fb8319ba2e6baddabad5 (patch) | |
| tree | 31b0a2fc07472631e9744c1013ca64ffe66fde38 /ishtar_common | |
| parent | 948696a25ef56e32bc04b93fd8802f45090ee6ba (diff) | |
| download | Ishtar-10177fbddd94fd4ca098fb8319ba2e6baddabad5.tar.bz2 Ishtar-10177fbddd94fd4ca098fb8319ba2e6baddabad5.zip | |
🐛 treatment container history: fix history on container move (refs #6532)
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/management/commands/migrate_find_container_v4_2.py | 4 |
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 ec0d8489e..35f5c256b 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( |
