From b77b736baa87c237ea19b30b9fa94b51b710c1c8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 Sep 2019 17:13:53 +0200 Subject: Custom default account naiming style --- ishtar_common/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ishtar_common/models.py') 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)') -- cgit v1.2.3