Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented configurable forcing of tags to lowercase before they are…
… saved to the database
- Loading branch information
jonathan.buchanan
committed
Aug 20, 2007
1 parent
b9d9a96
commit f5ca980
Showing
5 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters