summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commit247519c50c3bfe3b214261eb00bfcd716bea73c3 (patch)
tree6a6be2f86868d45565c83a47753bbfe182383689 /ishtar_common/models.py
parent01a2ee823110737dfc47f09d2a4471ec8ed39445 (diff)
downloadIshtar-247519c50c3bfe3b214261eb00bfcd716bea73c3.tar.bz2
Ishtar-247519c50c3bfe3b214261eb00bfcd716bea73c3.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.py2
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)