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 | b13324f20479de7603ed5daa9e3d989fc9bd4bd5 (patch) | |
| tree | fc1e37b78f9b134810b13cfda5536bcfed91d235 /ishtar_common/models.py | |
| parent | 87d8129d6259722d2e3b159390f0ab8876b1e1ce (diff) | |
| download | Ishtar-b13324f20479de7603ed5daa9e3d989fc9bd4bd5.tar.bz2 Ishtar-b13324f20479de7603ed5daa9e3d989fc9bd4bd5.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, | 
