diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-06-18 19:18:36 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-06-19 12:46:27 +0200 |
commit | 2ebc70e4947aac1ed8fd08874feb86bb2c7078fd (patch) | |
tree | 87625f1392c27aeb9f58196e8f9f226ba496a1e9 | |
parent | fd06d96247ff199698e184513f70473f045b0eb3 (diff) | |
download | Ishtar-2ebc70e4947aac1ed8fd08874feb86bb2c7078fd.tar.bz2 Ishtar-2ebc70e4947aac1ed8fd08874feb86bb2c7078fd.zip |
🐛 fix full location save on packaging with no containers (should not occur but...)
-rw-r--r-- | archaeological_finds/models_finds.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 83069bafb..67c4a414a 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -3824,8 +3824,8 @@ class FindTreatment(Imported): self.location_type = "R" if self.treatment.container: self.full_location = self.treatment.container.generate_full_location() - elif self.treatment.is_loan: - self.full_location = self.container_ref.generate_full_location() + elif self.treatment.is_loan and self.find.container_ref: + self.full_location = self.find.container_ref.generate_full_location() self._full_location_set = True self.save() return True |