summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2010-10-28 19:36:48 -0500
committerSol Jerome <sol.jerome@gmail.com>2010-10-28 19:36:48 -0500
commit106248d2315704efdee5e352b207a62b5cf697d5 (patch)
tree45bee8897dd513519f63cf16b5e9c085c2afdd63
parented7386814afdf3ca70bb9454ab7fb09a664e1657 (diff)
downloadbcfg2-106248d2315704efdee5e352b207a62b5cf697d5.tar.gz
bcfg2-106248d2315704efdee5e352b207a62b5cf697d5.tar.bz2
bcfg2-106248d2315704efdee5e352b207a62b5cf697d5.zip
Reports: Don't set TIME_ZONE unless it's supported
Django added the TIME_ZONE = None bit in 1.2 and we are still supporting distros with 1.0 installed by default. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rw-r--r--src/lib/Server/Reports/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index b725783ca..9efe38552 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -49,7 +49,8 @@ if DATABASE_ENGINE == 'sqlite3' and DATABASE_NAME == '':
try:
TIME_ZONE = c.get('statistics', 'time_zone')
except:
- TIME_ZONE = None
+ if django.VERSION[0] == 1 and django.VERSION[1] > 2:
+ TIME_ZONE = None
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes