diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-03 09:53:27 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | b465079492db9d1b5072468e093f7843abb0c5ca (patch) | |
tree | 71c8b0db447577cef0f613a91e470479a06fa38a /archaeological_warehouse | |
parent | c05f5102d948b3911b4383f25e9f69efa835f7a1 (diff) | |
download | Ishtar-b465079492db9d1b5072468e093f7843abb0c5ca.tar.bz2 Ishtar-b465079492db9d1b5072468e093f7843abb0c5ca.zip |
Fix localisation export
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r-- | archaeological_warehouse/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 81d675985..7112e6830 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -1105,8 +1105,8 @@ class Container(DocumentItem, Merge, LightHistorizedItem, return reversed(localisations) def get_localisation(self, place): - locas = self.get_localisations() - if len(list(locas)) < (place + 1): + locas = list(self.get_localisations()) + if len(locas) < (place + 1): return "" return locas[place] |