From 8bb49c9c9fae93536dcfd340e4631fc34a44df8a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 9 Feb 2021 18:02:41 +0100 Subject: Container: collection -> responsibility. Deactivate collection fot finds --- .../management/commands/migrate_to_new_container_management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_warehouse/management/commands/migrate_to_new_container_management.py') 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( -- cgit v1.2.3