summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commitb77b736baa87c237ea19b30b9fa94b51b710c1c8 (patch)
treed73936f6b692f08658c77fb41e2fbcabf20117d3 /ishtar_common/models.py
parent17845bf44a1595d378da4e19630f0292491d0081 (diff)
downloadIshtar-b77b736baa87c237ea19b30b9fa94b51b710c1c8.tar.bz2
Ishtar-b77b736baa87c237ea19b30b9fa94b51b710c1c8.zip
Custom default account naiming style
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py9
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)')