summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/management/commands/migrate_to_new_container_management.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-09 18:02:41 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:24 +0100
commit8bb49c9c9fae93536dcfd340e4631fc34a44df8a (patch)
tree64334c9307509607b65394e83ae0654f790f98cb /archaeological_warehouse/management/commands/migrate_to_new_container_management.py
parent1dcb2fb44584117220b87500188f2539e3a98c14 (diff)
downloadIshtar-8bb49c9c9fae93536dcfd340e4631fc34a44df8a.tar.bz2
Ishtar-8bb49c9c9fae93536dcfd340e4631fc34a44df8a.zip
Container: collection -> responsibility. Deactivate collection fot finds
Diffstat (limited to 'archaeological_warehouse/management/commands/migrate_to_new_container_management.py')
-rw-r--r--archaeological_warehouse/management/commands/migrate_to_new_container_management.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_warehouse/management/commands/migrate_to_new_container_management.py b/archaeological_warehouse/management/commands/migrate_to_new_container_management.py
index 38cabd842..abf207023 100644
--- a/archaeological_warehouse/management/commands/migrate_to_new_container_management.py
+++ b/archaeological_warehouse/management/commands/migrate_to_new_container_management.py
@@ -89,8 +89,8 @@ class Command(BaseCommand):
potential_duplicate[container.responsible_id][
ref].append(division.reference.strip())
parent = new_container
- if container.collection_id != container.responsible_id:
- container.collection_id = container.responsible_id
+ if container.responsibility_id != container.responsible_id:
+ container.responsibility_id = container.responsible_id
container.save()
if parent:
q = models.Container.objects.filter(