From 6a690d4d4a7a68c5f95bf36f7dfe08e0068dc56c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 6 Nov 2012 15:26:41 -0500 Subject: [PATCH] Create our various bot users without subscriptions. (imported from commit 9f9249cdb295f147d8b8b5cef17709c9aaa66418) --- zephyr/management/commands/populate_db.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zephyr/management/commands/populate_db.py b/zephyr/management/commands/populate_db.py index 5839c3a780..26e2267c42 100644 --- a/zephyr/management/commands/populate_db.py +++ b/zephyr/management/commands/populate_db.py @@ -199,6 +199,13 @@ class Command(BaseCommand): subscriptions_to_add.append(s) batch_bulk_create(Subscription, subscriptions_to_add) + internal_humbug_users_nosubs = [ + ("Humbug Commit Bot", "humbug+commits@humbughq.com"), + ("Humbug Trac Bot", "humbug+trac@humbughq.com"), + ("Humbug Feedback Bot", "feedback@humbughq.com"), + ] + create_users(realms, internal_humbug_users_nosubs) + self.stdout.write("Successfully populated test database.\n") if options["replay_old_messages"]: restore_saved_messages()