diff options
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 |
commit | a3af0d081a21713ff4c93c1d077477bc45c17527 (patch) | |
tree | d915605d6207355788d69ad9a8e2a3a35d94507d /archaeological_finds/models_finds.py | |
parent | 2f6802085f89cf947a60da17f6e2b47a580abc4b (diff) | |
download | Ishtar-a3af0d081a21713ff4c93c1d077477bc45c17527.tar.bz2 Ishtar-a3af0d081a21713ff4c93c1d077477bc45c17527.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.py | 3 |
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] |