diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-09-23 01:59:30 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-09-23 19:44:16 +0200 |
commit | 24edb2b192ee3c880722e800a001e38807f398b6 (patch) | |
tree | 9fd77ae80c94dfcce669a4fd7906ffb8010876cf /src/lib/Bcfg2 | |
parent | f019e9254ec0c42f670fda7183c300263ee65c1e (diff) | |
download | bcfg2-24edb2b192ee3c880722e800a001e38807f398b6.tar.gz bcfg2-24edb2b192ee3c880722e800a001e38807f398b6.tar.bz2 bcfg2-24edb2b192ee3c880722e800a001e38807f398b6.zip |
DBSettings: allow_syncdb is replaced with allow_migrate
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/DBSettings.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/DBSettings.py b/src/lib/Bcfg2/DBSettings.py index 5c3b8a265..61ab80253 100644 --- a/src/lib/Bcfg2/DBSettings.py +++ b/src/lib/Bcfg2/DBSettings.py @@ -251,7 +251,14 @@ class PerApplicationRouter(object): def allow_syncdb(self, *_): """ Called when Django wants to determine which models to sync to a given database. Take the cowards way out and sync all models to all - databases to allow for easy migrations. """ + databases to allow for easy migrations. This method is replaced with + allow_migrate in django 1.7 and higher. """ + return True + + def allow_migrate(self, *_args, **_kwargs): + """ Called when Django wants to determine which migrations should + be run on a given database. Take the cowards way out and run all + migrations to all databases to allow for easy migrations. """ return True |