summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c14635a51..ccbe486e0 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3186,7 +3186,8 @@ class Area(HierarchicalType):
related_name='areas')
parent = models.ForeignKey(
'self', blank=True, null=True, verbose_name=_(u"Parent"),
- help_text=_(u"Only four level of parent are managed.")
+ help_text=_(u"Only four level of parent are managed."),
+ related_name='children', on_delete=models.SET_NULL
)
class Meta: