mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user