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

Commit

Permalink
Merge pull request #864 from akatsoulas/fix-migration
Browse files Browse the repository at this point in the history
[bug 1092989] Fix unicode error in migration.
  • Loading branch information
akatsoulas committed Nov 12, 2014
2 parents c5acc23 + a1734dd commit 392596e
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 392596e

Please sign in to comment.