Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[bug 1092989] Fix unicode error in migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Nov 12, 2014
1 parent c5acc23 commit a1734dd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
Expand Down

0 comments on commit a1734dd

Please sign in to comment.