summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-06-29 15:37:18 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commita8578dcee5b4cad64ec6e10b1dc5cbfad815b4c8 (patch)
treed915605d6207355788d69ad9a8e2a3a35d94507d /archaeological_finds/models_finds.py
parent1d6484bfe6bbdf763f6a9c583115c1c6b3914037 (diff)
downloadIshtar-a8578dcee5b4cad64ec6e10b1dc5cbfad815b4c8.tar.bz2
Ishtar-a8578dcee5b4cad64ec6e10b1dc5cbfad815b4c8.zip
Container - bulk update: remove parent when changing warehouse (refs #4959)
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index c83e78eaa..3adaf90dd 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -2220,7 +2220,8 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
container = self.container
if not container:
return ""
- locas = container.get_localisations()
+ ## first localisation is the warehouse
+ locas = list(container.get_localisations())[1:]
if len(locas) < (place + 1):
return ""
return locas[place]