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

Commit

Permalink
print id instead of __unicode__ in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
cvan committed Sep 17, 2013
1 parent 97d79f0 commit 2df3ac9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions migrations/662-modify-existing-region-exclusions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ def run():
for aer in AddonExcludedRegion.objects.filter(region=18):
try:
aer.update(region=mkt.regions.MX.id)
print 'OK: %s New Mexico -> Old Mexico' % aer
print 'OK: %s New Mexico -> Old Mexico' % aer.id
except (IntegrityError, ObjectDoesNotExist):
print 'SKIP: %s New Mexico -> Old Mexico' % aer
print 'SKIP: %s New Mexico -> Old Mexico' % aer.id

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

# New regions were added.
exclude_new_region([
Expand Down

0 comments on commit 2df3ac9

Please sign in to comment.