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 | 0056e904f50710eb82aee146a2f27ba9a216a6c2 (patch) | |
tree | be6413e16600da10c543fc27802b29261d966b4c | |
parent | 7dff9fee6292e96aab8cb8fa5470fe3b2b3b8558 (diff) | |
download | Ishtar-0056e904f50710eb82aee146a2f27ba9a216a6c2.tar.bz2 Ishtar-0056e904f50710eb82aee146a2f27ba9a216a6c2.zip |
Area: fix recursive label
-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) |