X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/07fe485fb0a119fb87f8ec948185b5acdd65300e..dec306155823082d0e25e6abb10edc0cd269f0dd:/forum/settings/form.py diff --git a/forum/settings/form.py b/forum/settings/form.py index 45df66f..0637c13 100644 --- a/forum/settings/form.py +++ b/forum/settings/form.py @@ -33,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."), @@ -43,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 """