summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-28 09:32:54 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit8ea05a16fd7caa873bbd966b5b3d5949064c9c00 (patch)
treebe6413e16600da10c543fc27802b29261d966b4c /ishtar_common/models.py
parent462f53a44d93e8de6f4cbe2ec158b05375439865 (diff)
downloadIshtar-8ea05a16fd7caa873bbd966b5b3d5949064c9c00.tar.bz2
Ishtar-8ea05a16fd7caa873bbd966b5b3d5949064c9c00.zip
Area: fix recursive label
Diffstat (limited to 'ishtar_common/models.py')
-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 025e21f61..8d300c64a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3512,7 +3512,7 @@ class Area(HierarchicalType):
@property
def full_label(self):
label = [str(self)]
- if self.parent:
+ if self.parent and self.parent.pk != self.pk:
label.append(self.parent.full_label)
return " / ".join(label)