X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/786505648a5cb20e335a51a1e69555a868c33332..3a1befca62834cd3c0b3aa3f6af974179ddfbea4:/forum/settings/users.py diff --git a/forum/settings/users.py b/forum/settings/users.py index 7bc58ec..a108ebf 100644 --- a/forum/settings/users.py +++ b/forum/settings/users.py @@ -1,4 +1,4 @@ -from forms import CommaStringListWidget +from forms import CommaStringListWidget, StringListWidget from django.forms import CheckboxSelectMultiple from django.forms.widgets import RadioSelect from base import Setting, SettingSet @@ -38,6 +38,18 @@ help_text = _("The long usernames will be truncated.."), required=False, )) +SHOW_USER_ACCEPT_RATE = Setting('SHOW_USER_ACCEPT_RATE', True, USERS_SET, dict( +label = _("Show user accept rate"), +help_text = _("If you check this the user accept rate will be displayed on the user posts."), +required=False)) + +FREEZE_ACCEPT_RATE_FOR = Setting('FREEZE_ACCEPT_RATE_FOR', +["admin",], +USERS_SET, dict( +label = _("Freeze accept rate"), +help_text = _("Freeze answers accept rate for the selected users."), +widget=StringListWidget)) + 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.")))