Fix email case issues when restoring user pointers.

(imported from commit 84d3288dffc1cb010d8cd2a749fe71aa2a4d0df3)
This commit is contained in:
Tim Abbott 2012-12-13 11:11:45 -05:00
parent 899cbabe23
commit bda420a0f9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def dump():
def restore(change): def restore(change):
for (email, pointer) in simplejson.loads(file("dumped-pointers").read()): for (email, pointer) in simplejson.loads(file("dumped-pointers").read()):
u = UserProfile.objects.get(user__email=email) u = UserProfile.objects.get(user__email__iexact=email)
print "%s: pointer %s => %s" % (email, u.pointer, pointer) print "%s: pointer %s => %s" % (email, u.pointer, pointer)
if change: if change:
u.pointer = pointer u.pointer = pointer