diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 4b663aa23..10939deea 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3556,7 +3556,7 @@ class Town(Imported, models.Model):          cached_label = self.name          if settings.COUNTRY == "fr":              cached_label = u"%s - %s" % (self.name, self.numero_insee[:2]) -        if self.year: +        if self.year and self.children.count():              cached_label += " ({})".format(self.year)          return cached_label | 
