summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-10-29 10:43:36 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-10-29 10:44:34 -0500
commitd95ff964b803ed9aefaae0b54907b824655b3bd8 (patch)
tree726c274c735d6b2cd4bfec8b46a0bbfd22fa931b /tools
parentef87028da290f8c196075f4e8154596329d56f15 (diff)
downloadbcfg2-d95ff964b803ed9aefaae0b54907b824655b3bd8.tar.gz
bcfg2-d95ff964b803ed9aefaae0b54907b824655b3bd8.tar.bz2
bcfg2-d95ff964b803ed9aefaae0b54907b824655b3bd8.zip
Reporting: Allow interactions without a profile
Diffstat (limited to 'tools')
-rwxr-xr-xtools/upgrade/1.3/migrate_dbstats.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/upgrade/1.3/migrate_dbstats.py b/tools/upgrade/1.3/migrate_dbstats.py
index c17328d19..15bd328f9 100755
--- a/tools/upgrade/1.3/migrate_dbstats.py
+++ b/tools/upgrade/1.3/migrate_dbstats.py
@@ -81,12 +81,6 @@ def _migrate_transaction(inter, entries, fperms):
else:
groups = []
bundles = []
- unkown_profile = cache.get("PROFILE_UNKNOWN")
- if not unkown_profile:
- unkown_profile, created = new_models.Group.objects.get_or_create(name="Unknown")
- cache.set("PROFILE_UNKNOWN", unkown_profile, 60 * 60)
- newint.profile = unkown_profile
- groups = [unkown_profile]
super(new_models.Interaction, newint).save()
if bundles:
newint.bundles.add(*bundles)