From d95ff964b803ed9aefaae0b54907b824655b3bd8 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Mon, 29 Oct 2012 10:43:36 -0500 Subject: Reporting: Allow interactions without a profile --- tools/upgrade/1.3/migrate_dbstats.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools') 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) -- cgit v1.2.3-1-g7c22