mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +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:
@@ -7,7 +7,7 @@ import simplejson
|
||||
def dump():
|
||||
passwords = []
|
||||
for user_profile in UserProfile.objects.all():
|
||||
passwords.append((user_profile.user.email, user_profile.password))
|
||||
passwords.append((user_profile.email, user_profile.password))
|
||||
file("dumped-passwords", "w").write(simplejson.dumps(passwords) + "\n")
|
||||
|
||||
def restore(change):
|
||||
|
||||
Reference in New Issue
Block a user