]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/form.py
If you're a superuser viweing a user auth settings, don't present the option to add...
[osqa.git] / forum / settings / form.py
index ba1b5b595eb38df271bbfc8d77a5bf4311a4f01c..0637c130ef2f5166446f84e2a71cc8959f3f1af1 100644 (file)
@@ -4,6 +4,10 @@ from django.utils.translation import ugettext_lazy as _
 
 FORUM_SET = SettingSet('form', _('Form settings'), _("General settings for the OSQA forms."), 10)
 
+WIKI_ON = Setting('WIKI_ON', True, FORUM_SET, dict(
+label = _("Enable community wiki"),
+help_text = _("Can questions or answers be marked as community wiki."),
+required=False))
 
 
 """ settings for questions """
@@ -29,6 +33,9 @@ help_text = _("If a question's content can be empty."),
 required=False))
 
 
+
+
+""" settings for tags """
 FORM_MIN_NUMBER_OF_TAGS = Setting('FORM_MIN_NUMBER_OF_TAGS', 1, FORUM_SET, dict(
 label = _("Required number of tags per question"),
 help_text = _("How many tags are required in questions."),
@@ -39,6 +46,17 @@ label = _("Maximum number of tags per question"),
 help_text = _("How many tags are allowed in questions."),
 ))
 
+FORM_MIN_LENGTH_OF_TAG = Setting('FORM_MIN_LENGTH_OF_TAG', 1, FORUM_SET, dict(
+label = _("Minimum length of a tag"),
+help_text = _("How short a tag can be."),
+))
+
+FORM_MAX_LENGTH_OF_TAG = Setting('FORM_MAX_LENGTH_OF_TAG', 20, FORUM_SET, dict(
+label = _("Maximum length of a tag"),
+help_text = _("How long a tag can be."),
+))
+
+
 
 
 """ settings for comments """