summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Reporting/models.py')
-rw-r--r--src/lib/Bcfg2/Reporting/models.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/Bcfg2/Reporting/models.py b/src/lib/Bcfg2/Reporting/models.py
index 345dd1bc3..faa972204 100644
--- a/src/lib/Bcfg2/Reporting/models.py
+++ b/src/lib/Bcfg2/Reporting/models.py
@@ -62,15 +62,7 @@ def _quote(value):
"""
global _our_backend
if not _our_backend:
- if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
- _our_backend = connections[get_db_label('Reporting')].ops
- else:
- from django.db import backend
- try:
- _our_backend = backend.DatabaseOperations(
- connections[get_db_label('Reporting')])
- except TypeError:
- _our_backend = backend.DatabaseOperations()
+ _our_backend = connections[get_db_label('Reporting')].ops
return _our_backend.quote_name(value)