1 from base import Setting, SettingSet
2 from forms import StringListWidget
4 from django.utils.encoding import smart_unicode
5 from django.utils.translation import ugettext_lazy as _
6 from django.forms.widgets import Textarea
8 MODERATION_SET = SettingSet('moderation', _('Moderation settings'), _("Define the moderation workflow of your site"), 100)
10 USE_CANNED_COMMENTS = Setting('USE_CANNED_COMMENTS', True, MODERATION_SET, dict(
11 label = _("Use canned comments"),
12 help_text = _("If you check, the canned comments feature will be activated, allowing moderators to use canned patterns for their comments."),
15 CANNED_COMMENTS = Setting('CANNED_COMMENTS',
17 "We require all postings to have a clear, specific QUESTION in the title field. Please edit this right away to rephrase the title as a proper question.",
20 label = _("Canned comments"),
21 help_text = _("Create some canned comments to be used for easier moderation."),
22 widget=StringListWidget))
24 FLAG_TYPES = Setting('FLAG_TYPES',
25 ["Spam", "Advertising", "Offensive, Abusive, or Inappropriate", "Content violates terms of use", "Copyright Violation",
26 "Misleading", "Someone is not being nice", "Not relevant/off-topic", "Other"],
28 label = _("Flag Reasons"),
29 help_text = _("Create some flag reasons to use in the flag post popup."),
30 widget=StringListWidget))
33 CLOSE_TYPES = Setting('CLOSE_TYPES',
34 ["Duplicate Question", "Question is off-topic or not relevant", "Too subjective and argumentative",
35 "The question is answered, right answer was accepted", "Problem is not reproducible or outdated", "Other"],
37 label = _("Close Reasons"),
38 help_text = _("Create some close reasons to use in the close question popup."),
39 widget=StringListWidget))