summaryrefslogtreecommitdiff
path: root/archaeological_warehouse
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-02 16:38:18 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commita55b290ed3745cefb82d189d8dc678c762301fa6 (patch)
treec67ac8afe2228a572272dcebe8853d5d82bad9af /archaeological_warehouse
parent0c3b9124dc790efa6a5f7e3883d7a3e8a5708389 (diff)
downloadIshtar-a55b290ed3745cefb82d189d8dc678c762301fa6.tar.bz2
Ishtar-a55b290ed3745cefb82d189d8dc678c762301fa6.zip
Tests: fix default conversion to str
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r--archaeological_warehouse/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index 756052f64..281bac296 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -559,7 +559,7 @@ class Container(DocumentItem, LightHistorizedItem, QRCodeItem, GeoItem,
)
def __str__(self):
- return self.cached_label
+ return self.cached_label or ""
def natural_key(self):
return (self.external_id, )