Access the UserProfile's new email field rather than using User.

This is preparatory for stopping using the User model.

(imported from commit a1b0808c8cc2ddd19a25163f91c4f18620c9ce90)
This commit is contained in:
Tim Abbott
2013-03-28 15:43:34 -04:00
parent 3a35c5b00c
commit 1443edce00
25 changed files with 94 additions and 94 deletions

View File

@@ -55,10 +55,10 @@ class Command(BaseCommand):
if not options["for_real"]:
for msg in msgs:
print "Adding read flag to msg: %s - %s/%s (own msg: %s)" \
% (user_profile.user.email,
% (user_profile.email,
msg.message.id,
msg.id,
msg.message.sender.user.email == user_profile.user.email)
msg.message.sender.email == user_profile.email)
else:
def do_update(batch):
with transaction.commit_on_success():