Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 2df3ac9

Browse files
committed
print id instead of __unicode__ in migration
1 parent 97d79f0 commit 2df3ac9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

migrations/662-modify-existing-region-exclusions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ def run():
1919
for aer in AddonExcludedRegion.objects.filter(region=18):
2020
try:
2121
aer.update(region=mkt.regions.MX.id)
22-
print 'OK: %s New Mexico -> Old Mexico' % aer
22+
print 'OK: %s New Mexico -> Old Mexico' % aer.id
2323
except (IntegrityError, ObjectDoesNotExist):
24-
print 'SKIP: %s New Mexico -> Old Mexico' % aer
24+
print 'SKIP: %s New Mexico -> Old Mexico' % aer.id
2525

2626
# And the featured apps, if there were any.
2727
for far in FeaturedAppRegion.objects.filter(region=18):
2828
try:
2929
far.update(region=mkt.regions.MX.id)
30-
print 'OK: %s New Mexico -> Old Mexico' % far
30+
print 'OK: %s New Mexico -> Old Mexico' % far.id
3131
except (IntegrityError, ObjectDoesNotExist):
32-
print 'SKIP: %s New Mexico -> Old Mexico' % far
32+
print 'SKIP: %s New Mexico -> Old Mexico' % far.id
3333

3434
# New regions were added.
3535
exclude_new_region([

0 commit comments

Comments
 (0)