2 from base import Setting, SettingSet
3 from django.utils.translation import ugettext_lazy as _
5 FORUM_SET = SettingSet('form', _('Form settings'), _("General settings for the OSQA forms."), 10)
9 """ settings for questions """
10 FORM_MIN_QUESTION_TITLE = Setting('FORM_MIN_QUESTION_TITLE', 10, FORUM_SET, dict(
11 label = _("Minimum number of characters for a question's title"),
12 help_text = _("The minimum number of characters a user must enter into the title field of a question.")))
14 # FORM_MAX_QUESTION_TITLE = Setting('FORM_MAX_QUESTION_TITLE', 100, FORUM_SET, dict(
15 # label = _("Maximum number of characters for a question."),
16 # help_text = _("The maximum number of characters a user can enter into the description field to submit a question.")))
18 FORM_MIN_QUESTION_BODY = Setting('FORM_MIN_QUESTION_BODY', 10, FORUM_SET, dict(
19 label = _("Minimum number of characters for a question's content"),
20 help_text = _("The minimum number of characters a user must enter into the content field of a question.")))
22 # FORM_MAX_QUESTION_DESCRIPTION = Setting('FORM_MAX_QUESTION_DESCRIPTION', 600, FORUM_SET, dict(
23 # label = _("Maximum number of characters for a question."),
24 # help_text = _("The maximum number of characters a user can enter into the description field to submit a question.")))
28 """ settings for comments """
29 FORM_MIN_COMMENT_BODY = Setting('FORM_MIN_COMMENT_BODY', 10, FORUM_SET, dict(
30 label = _("Minimum number of characters for a comment"),
31 help_text = _("The minimum number of characters a user must enter into the body of a comment.")))
33 FORM_MAX_COMMENT_BODY = Setting('FORM_MAX_COMMENT_BODY', 600, FORUM_SET, dict(
34 label = _("Maximum length of comment"),
35 help_text = _("The maximum number of characters a user can enter into the body of a comment.")))