From f4a7ac4b044e9dfee2f79bd198b41d0e0ec647c8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Oct 2018 20:42:00 +0200 Subject: Sheet: display INSEE number on sheets --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 8c150bf29..de494e863 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3759,6 +3759,8 @@ class Town(Imported, models.Model): @property def label_with_areas(self): label = [self.name] + if self.numero_insee: + label.append(u"({})".format(self.numero_insee)) for area in self.areas.all(): label.append(u" - ") label.append(area.full_label) -- cgit v1.2.3