From 4129fb1a79f4082466940c3d0b0ced7767697664 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Apr 2019 16:38:18 +0200 Subject: Tests: fix default conversion to str --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common') 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): -- cgit v1.2.3