aboutsummaryrefslogtreecommitdiff
path: root/tagging/settings.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:45 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:45 -0700
commit3b9f21a55fed735652716e63fedabad87899be81 (patch)
treeb6f57d335a1be88466d7780a6bb3101e81df2dde /tagging/settings.py
parent2228968f3d51a3d686adb2839bf43e018432f941 (diff)
downloadpython-django-tagging-3b9f21a55fed735652716e63fedabad87899be81.tar
python-django-tagging-3b9f21a55fed735652716e63fedabad87899be81.tar.gz
Imported Upstream version 0.2.1upstream/0.2.1
Diffstat (limited to 'tagging/settings.py')
-rw-r--r--tagging/settings.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/tagging/settings.py b/tagging/settings.py
index 18321bd..78da3af 100644
--- a/tagging/settings.py
+++ b/tagging/settings.py
@@ -1,13 +1,13 @@
-"""
-Convenience module for access of custom tagging application settings,
-which enforces default settings when the main settings module which has
-been configured does not contain the appropriate settings.
-"""
-from django.conf import settings
-
-# Whether to force all tags to lowercase before they are saved to the
-# database. Default is False.
-try:
- FORCE_LOWERCASE_TAGS = settings.FORCE_LOWERCASE_TAGS
-except AttributeError:
- FORCE_LOWERCASE_TAGS = False
+"""
+Convenience module for access of custom tagging application settings,
+which enforces default settings when the main settings module does not
+contain the appropriate settings.
+"""
+from django.conf import settings
+
+# The maximum length of a tag's name.
+MAX_TAG_LENGTH = getattr(settings, 'MAX_TAG_LENGTH', 50)
+
+# Whether to force all tags to lowercase before they are saved to the
+# database.
+FORCE_LOWERCASE_TAGS = getattr(settings, 'FORCE_LOWERCASE_TAGS', False)