summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/models_finds.py4
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