From a1734dd69c1e7f7636dd89390d404ef30344cf03 Mon Sep 17 00:00:00 2001 From: Tasos Katsoulas Date: Wed, 12 Nov 2014 14:22:37 +0200 Subject: [PATCH] [bug 1092989] Fix unicode error in migration. --- .../migrations/0018_action_item_for_post_event_metrics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remo/events/migrations/0018_action_item_for_post_event_metrics.py b/remo/events/migrations/0018_action_item_for_post_event_metrics.py index da3e7e23a..b09f0fd76 100644 --- a/remo/events/migrations/0018_action_item_for_post_event_metrics.py +++ b/remo/events/migrations/0018_action_item_for_post_event_metrics.py @@ -8,7 +8,6 @@ class Migration(DataMigration): def forwards(self, orm): - from remo.base.utils import get_date from remo.dashboard.models import ActionItem event_type = orm['contenttypes.ContentType'].objects.get( @@ -22,7 +21,7 @@ def forwards(self, orm): end__range=[start, end], has_new_metrics=True) events = events.distinct() - name = 'Add or Update post event metrics for event {0}' + name = u'Add or Update post event metrics for event {0}' for event in events: orm['dashboard.ActionItem'].objects.create( content_type=event_type, object_id=event.id,