X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/10c37b22084e296a86a4fc13eb4f5fb2a15bdd8b..508b758ebf7d03317c1f1a14ba6006dd83eedd08:/forum/settings/users.py diff --git a/forum/settings/users.py b/forum/settings/users.py index 2a79942..cceaf57 100644 --- a/forum/settings/users.py +++ b/forum/settings/users.py @@ -22,6 +22,16 @@ label = _("Disabled usernames"), help_text = _("A comma separated list of disabled usernames (usernames not allowed during a new user registration)."), widget=CommaStringListWidget)) +TRUNCATE_LONG_USERNAMES = Setting('TRUNCATE_LONG_USERNAMES', True, USERS_SET, dict( +label=_("Truncate long usernames"), +help_text = _("The long usernames will be truncated.."), +required=False, +)) + +TRUNCATE_USERNAMES_LONGER_THAN = Setting('TRUNCATE_USERNAMES_LONGER_THAN', 15, USERS_SET, dict( +label = _("Truncate usernames longer than"), +help_text = _("The usernames that are longer than this will be truncated and ... will be appended."))) + SHOW_STATUS_DIAMONDS = Setting('SHOW_STATUS_DIAMONDS', True, USERS_SET, dict( label=_("Show status diamonds"), help_text = _("Show status \"diamonds\" next to moderators or superusers usernames."), @@ -30,7 +40,8 @@ required=False, EMAIL_UNIQUE = Setting('EMAIL_UNIQUE', True, USERS_SET, dict( label = _("Force unique email"), -help_text = _("Should each user have an unique email."))) +help_text = _("Should each user have an unique email."), +required=False)) REQUIRE_EMAIL_VALIDATION_TO = Setting('REQUIRE_EMAIL_VALIDATION_TO', [], USERS_SET, dict( label = _("Require email validation to..."),