summaryrefslogtreecommitdiff
path: root/ishtar_common
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 /ishtar_common
parent0c3b9124dc790efa6a5f7e3883d7a3e8a5708389 (diff)
downloadIshtar-a55b290ed3745cefb82d189d8dc678c762301fa6.tar.bz2
Ishtar-a55b290ed3745cefb82d189d8dc678c762301fa6.zip
Tests: fix default conversion to str
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index a17bcac03..4d699bfd8 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3242,7 +3242,7 @@ class Town(Imported, models.Model):
return res
def __str__(self):
- return self.cached_label
+ return self.cached_label or ""
@property
def label_with_areas(self):