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

@@ -24,9 +24,9 @@ class Command(BaseCommand):
user_profile = get_user_profile_by_email(args[0])
print "Deactivating %s (%s) - %s" % (user_profile.full_name,
user_profile.user.email,
user_profile.email,
user_profile.realm.domain)
print "%s has the following active sessions:" % (user_profile.user.email,)
print "%s has the following active sessions:" % (user_profile.email,)
for session in user_sessions(user_profile.user):
print session.expire_date, session.get_decoded()
print ""