summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-10-09 06:43:58 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-10-09 06:43:58 -0500
commit3ff97b55da290df736e51a85b0abdd14101efeab (patch)
tree3e99156dc8b9fb723e0e408e6a451598bad6090c /tools
parentf065fbc48b4380fa9e723518d7465bd0e309b4a9 (diff)
downloadbcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.tar.gz
bcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.tar.bz2
bcfg2-3ff97b55da290df736e51a85b0abdd14101efeab.zip
add unknown group to groups
Diffstat (limited to 'tools')
-rw-r--r--tools/upgrade/1.3/migrate_dbstats.py1
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)