summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/management
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/management')
-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(