From 18a6ad99164350af62d65efd6a1fd1aa4c419739 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 12 May 2014 21:21:04 +0200 Subject: Person and organization deletion (refs #1675) * add associated actions, wizards, forms * prevent deletion of associted items (operations, files, etc.) * give list of associated items before deletion and give access to these items --- ishtar_common/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 71de53a67..4e05a115f 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -782,6 +782,7 @@ class Person(Address, OwnPerms, ValueGetter) : name = models.CharField(_(u"Name"), max_length=30) person_types = models.ManyToManyField(PersonType, verbose_name=_(u"Types")) attached_to = models.ForeignKey('Organization', related_name='members', + on_delete=models.SET_NULL, verbose_name=_(u"Is attached to"), blank=True, null=True) class Meta: -- cgit v1.2.3