[schema] Add support for bot users

(imported from commit 634a8211b41fd0040c95b51b96a88d3517fa8cf4)
This commit is contained in:
Zev Benjamin
2013-05-02 18:25:43 -04:00
parent e18d76f4dd
commit 73be68fbb9
5 changed files with 184 additions and 14 deletions

View File

@@ -36,8 +36,8 @@ def bulk_create_users(realms, users_raw):
for (email, full_name, short_name, active) in users:
domain = email.split('@')[1]
profile = create_user_profile(realms[domain], email,
initial_password(email), active,
full_name, short_name)
initial_password(email), active, False,
full_name, short_name, None)
profiles_to_create.append(profile)
UserProfile.objects.bulk_create(profiles_to_create)