X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/596fa1bf821c572f45c16ba92cb0e65211f6a3ae..a55b5f91ad440cd0c35ac45cbe2515e238e9a7c8:/forum/settings/voting.py diff --git a/forum/settings/voting.py b/forum/settings/voting.py index 7c43ea3..aea9153 100644 --- a/forum/settings/voting.py +++ b/forum/settings/voting.py @@ -3,6 +3,10 @@ from django.utils.translation import ugettext_lazy as _ VOTE_RULES_SET = SettingSet('voting', _('Voting rules'), _("Configure the voting rules on your site."), 400) +USER_REPUTATION_TO_MAX_VOTES = Setting('USER_REPUTATION_TO_MAX_VOTES', True, VOTE_RULES_SET, dict( +label = _("Add reputation to max votes per day"), required=False, +help_text = _("The user reputation is added to the static MAX_VOTES_PER_DAY option. Users with higher reputation can vote more."))) + MAX_VOTES_PER_DAY = Setting('MAX_VOTES_PER_DAY', 30, VOTE_RULES_SET, dict( label = _("Maximum votes per day"), help_text = _("The maximum number of votes an user can cast per day.")))