X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/617e60be3c7d2e0f17639f3487a721d4efdc02c0..7cdc19bcfed965828015c882bed2cd82a7f442d7:/forum/settings/users.py diff --git a/forum/settings/users.py b/forum/settings/users.py index 07f47b6..926d414 100644 --- a/forum/settings/users.py +++ b/forum/settings/users.py @@ -21,6 +21,12 @@ label = _("Disabled usernames"), help_text = _("A comma separated list of disabled usernames (usernames not allowed during a new user registration)."), widget=CommaStringListWidget)) +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."), +required=False, +)) + EMAIL_UNIQUE = Setting('EMAIL_UNIQUE', True, USERS_SET, dict( label = _("Force unique email"), help_text = _("Should each user have an unique email."))) @@ -33,6 +39,11 @@ choices=(("ask", _("ask questions")), ("answer", _("provide answers")), ("commen required=False, )) +DONT_NOTIFY_UNVALIDATED = Setting('DONT_NOTIFY_UNVALIDATED', True, USERS_SET, dict( +label = _("Don't notify to invalid emails"), +help_text = _("Do not notify users with unvalidated emails."), +required=False)) + HOLD_PENDING_POSTS_MINUTES = Setting('HOLD_PENDING_POSTS_MINUTES', 120, USERS_SET, dict( label=_("Hold pending posts for X minutes"), help_text=_("How much time in minutes a post should be kept in session until the user logs in or validates the email.") @@ -41,4 +52,5 @@ help_text=_("How much time in minutes a post should be kept in session until the WARN_PENDING_POSTS_MINUTES = Setting('WARN_PENDING_POSTS_MINUTES', 15, USERS_SET, dict( label=_("Warn about pending posts afer X minutes"), help_text=_("How much time in minutes a user that just logged in or validated his email should be warned about a pending post instead of publishing it automatically.") -)) \ No newline at end of file +)) +