diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-16 17:13:53 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-16 17:13:53 +0200 | 
| commit | 29e1f9e5af6aeee97f2b35d8cf19f588d524274d (patch) | |
| tree | d73936f6b692f08658c77fb41e2fbcabf20117d3 /ishtar_common/models.py | |
| parent | 0124b3fbcc45374a4b40ab988305a6ce1ac1a6f4 (diff) | |
| download | Ishtar-29e1f9e5af6aeee97f2b35d8cf19f588d524274d.tar.bz2 Ishtar-29e1f9e5af6aeee97f2b35d8cf19f588d524274d.zip | |
Custom default account naiming style
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index adf83bf8e..6f51a840e 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2673,6 +2673,11 @@ TRANSLATED_SITE_LABELS = {      },  } +ACCOUNT_NAMING_STYLE = ( +    ('NF', _("name.firstname")), +    ('FN', _("firstname.name")), +) +  class IshtarSiteProfile(models.Model, Cached):      slug_field = 'slug' @@ -2818,6 +2823,10 @@ class IshtarSiteProfile(models.Model, Cached):                                           default=True)      currency = models.CharField(_("Currency"), default="€",                                  choices=CURRENCY, max_length=5) +    account_naming_style = models.CharField( +        _("Naming style for accounts"), max_length=2, default="NF", +        choices=ACCOUNT_NAMING_STYLE +    )      default_center = models.PointField(          _("Maps - default center"),          default='SRID=4326;POINT(2.4397 46.5528)') | 
