]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/moderation.py
Fixes OSQA 413, 414, 415, 416, 417 (patches from mathieu Lafon) and 420 /patch by...
[osqa.git] / forum / settings / moderation.py
1 from base import Setting, SettingSet
2 from forms import StringListWidget
3
4 from django.utils.translation import ugettext_lazy as _
5 from django.forms.widgets import Textarea
6
7 MODERATION_SET = SettingSet('moderation', _('Moderation settings'), _("Define the moderation workflow of your site"), 100)
8
9 FLAG_TYPES = Setting('FLAG_TYPES',
10 ["Spam", "Advertising", "Offensive, Abusive, or Inappropriate", "Content violates terms of use", "Copyright Violation",
11  "Misleading", "Someone is not being nice", "Not relevant/off-topic", "Other"],
12 MODERATION_SET, dict(
13 label = _("Flag Reasons"),
14 help_text = _("Create some flag reasons to use in the flag post popup."),
15 widget=StringListWidget))
16
17
18 CLOSE_TYPES = Setting('CLOSE_TYPES',
19 ["Duplicate Question", "Question is off-topic or not relevant", "Too subjective and argumentative",
20  "The question is answered, right answer was accepted", "Problem is not reproducible or outdated", "Other"],
21 MODERATION_SET, dict(
22 label = _("Close Reasons"),
23 help_text = _("Create some close reasons to use in the close question popup."),
24 widget=StringListWidget))