diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-10-09 06:43:58 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-10-09 06:43:58 -0500 |
commit | 3ff97b55da290df736e51a85b0abdd14101efeab (patch) | |
tree | 3e99156dc8b9fb723e0e408e6a451598bad6090c /tools/upgrade | |
parent | f065fbc48b4380fa9e723518d7465bd0e309b4a9 (diff) | |
download | bcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.tar.gz bcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.tar.bz2 bcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.zip |
add unknown group to groups
Diffstat (limited to 'tools/upgrade')
-rw-r--r-- | tools/upgrade/1.3/migrate_dbstats.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/upgrade/1.3/migrate_dbstats.py b/tools/upgrade/1.3/migrate_dbstats.py index 0fe0bfa41..d44ebd6a7 100644 --- a/tools/upgrade/1.3/migrate_dbstats.py +++ b/tools/upgrade/1.3/migrate_dbstats.py @@ -63,6 +63,7 @@ def _migrate_transaction(inter, entries): unkown_profile, created = new_models.Group.objects.get_or_create(name="<<Unknown>>") cache.set("PROFILE_UNKNOWN", unkown_profile) newint.profile = unkown_profile + groups = [unkown_profile] newint.save() if bundles: newint.bundles.add(*bundles) |