diff options
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 |
commit | daed3aa1cdb63cea7ac97f1d7da838df465fc925 (patch) | |
tree | 64334c9307509607b65394e83ae0654f790f98cb /archaeological_warehouse/management/commands/migrate_to_new_container_management.py | |
parent | 939918a683bff6a18cabcd83764e9db8dfd0183a (diff) | |
download | Ishtar-daed3aa1cdb63cea7ac97f1d7da838df465fc925.tar.bz2 Ishtar-daed3aa1cdb63cea7ac97f1d7da838df465fc925.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.py | 4 |
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( |