diff --git a/zephyr/management/commands/banish_broken.py b/zephyr/management/commands/banish_broken.py index 873e37356e..c38ce2a9b7 100644 --- a/zephyr/management/commands/banish_broken.py +++ b/zephyr/management/commands/banish_broken.py @@ -13,7 +13,7 @@ def banish_busted_users(change=False): print u.user.email if change: u.realm = banished_realm - u.user.email = u.user.email.split("@")[0] + "@" + banished_realm + u.user.email = u.user.email.split("@")[0] + "@" + banished_realm.domain u.user.save() u.save()