diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-26 13:57:22 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-26 13:57:22 +0100 |
commit | 026274e37f85b12133627f576aad3d2a242144af (patch) | |
tree | fc1e37b78f9b134810b13cfda5536bcfed91d235 /ishtar_common/models.py | |
parent | de9121af10193688965a53f23f33af2a8baebd2f (diff) | |
download | Ishtar-026274e37f85b12133627f576aad3d2a242144af.tar.bz2 Ishtar-026274e37f85b12133627f576aad3d2a242144af.zip |
Person: allow empty title
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index e7e188911..7ef06ddb7 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1037,7 +1037,8 @@ class PersonType(GeneralType): class Person(Address, Merge, OwnPerms, ValueGetter) : _prefix = 'person_' - TYPE = (('Mr', _(u'Mr')), + TYPE = ( + ('Mr', _(u'Mr')), ('Ms', _(u'Miss')), ('Mr and Miss', _(u'Mr and Miss')), ('Md', _(u'Mrs')), @@ -1045,7 +1046,8 @@ class Person(Address, Merge, OwnPerms, ValueGetter) : ) TABLE_COLS = ('name', 'surname', 'email', 'person_types_list', 'attached_to') - title = models.CharField(_(u"Title"), max_length=2, choices=TYPE) + title = models.CharField(_(u"Title"), max_length=2, choices=TYPE, + blank=True, null=True) surname = models.CharField(_(u"Surname"), max_length=50, blank=True, null=True) name = models.CharField(_(u"Name"), max_length=200, blank=True, |