diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-11-28 21:12:22 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-11-28 21:17:54 +0100 |
commit | fa0d86aba32c40d829f9f94411403221a48283e8 (patch) | |
tree | 907460195745cc57287ffa2c23621a99c8a68eed /src/lib/Bcfg2/Reporting | |
parent | 73fb40f2ac080ccbb4d9f0f0acc2c7f5009321f6 (diff) | |
download | bcfg2-fa0d86aba32c40d829f9f94411403221a48283e8.tar.gz bcfg2-fa0d86aba32c40d829f9f94411403221a48283e8.tar.bz2 bcfg2-fa0d86aba32c40d829f9f94411403221a48283e8.zip |
DBSettings: Call django.setup() right after configuring the settings
If required the DBSettings config hook will call django.setup right after
configuring django with the required settings. So we can drop the calls to
django.setup from all other places.
Diffstat (limited to 'src/lib/Bcfg2/Reporting')
-rwxr-xr-x | src/lib/Bcfg2/Reporting/Reports.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Reporting/Reports.py b/src/lib/Bcfg2/Reporting/Reports.py index 7ba0265ae..e60b2e82e 100755 --- a/src/lib/Bcfg2/Reporting/Reports.py +++ b/src/lib/Bcfg2/Reporting/Reports.py @@ -327,8 +327,6 @@ class CLI(Bcfg2.Options.CommandRegistry): components=[self]) parser.add_options(self.subcommand_options) parser.parse() - if django.VERSION[0] == 1 and django.VERSION[1] >= 7: - django.setup() # pylint: disable=E1101 def run(self): """ Run bcfg2-reports """ |