diff options
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 |
commit | 8ea05a16fd7caa873bbd966b5b3d5949064c9c00 (patch) | |
tree | be6413e16600da10c543fc27802b29261d966b4c /ishtar_common | |
parent | 462f53a44d93e8de6f4cbe2ec158b05375439865 (diff) | |
download | Ishtar-8ea05a16fd7caa873bbd966b5b3d5949064c9c00.tar.bz2 Ishtar-8ea05a16fd7caa873bbd966b5b3d5949064c9c00.zip |
Area: fix recursive label
Diffstat (limited to 'ishtar_common')
-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 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) |