diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 21:21:04 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 21:23:12 +0200 |
commit | 18a6ad99164350af62d65efd6a1fd1aa4c419739 (patch) | |
tree | e69bfd5b3bc0843ec93223dc12d4a376d6b489c0 /ishtar_common/models.py | |
parent | 6d05b2d357c15b9d291922ac67fecebe3208b55f (diff) | |
download | Ishtar-18a6ad99164350af62d65efd6a1fd1aa4c419739.tar.bz2 Ishtar-18a6ad99164350af62d65efd6a1fd1aa4c419739.zip |
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
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |