diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 17:56:38 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 17:56:38 +0200 |
commit | d7b838f3c088337248c0c94d9b765b68e30551a8 (patch) | |
tree | 6a6be2f86868d45565c83a47753bbfe182383689 /ishtar_common/models.py | |
parent | 7d8bfcc053c9d3448e405f90df6eff214ac7d2e3 (diff) | |
download | Ishtar-d7b838f3c088337248c0c94d9b765b68e30551a8.tar.bz2 Ishtar-d7b838f3c088337248c0c94d9b765b68e30551a8.zip |
Add email field to organizations - Django management of email fields (refs #1677)
Diffstat (limited to 'ishtar_common/models.py')
-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 fd4a76dc0..71de53a67 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -716,6 +716,7 @@ class Address(BaseHistorizedItem): phone = models.CharField(_(u"Phone"), max_length=18, null=True, blank=True) mobile_phone = models.CharField(_(u"Mobile phone"), max_length=18, null=True, blank=True) + email = models.EmailField(_(u"Email"), max_length=75, blank=True, null=True) history = HistoricalRecords() class Meta: @@ -779,7 +780,6 @@ class Person(Address, OwnPerms, ValueGetter) : surname = models.CharField(_(u"Surname"), max_length=20, blank=True, null=True) name = models.CharField(_(u"Name"), max_length=30) - email = models.CharField(_(u"Email"), max_length=40, blank=True, null=True) person_types = models.ManyToManyField(PersonType, verbose_name=_(u"Types")) attached_to = models.ForeignKey('Organization', related_name='members', verbose_name=_(u"Is attached to"), blank=True, null=True) |