mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Create our various bot users without subscriptions.
(imported from commit 9f9249cdb295f147d8b8b5cef17709c9aaa66418)
This commit is contained in:
@@ -199,6 +199,13 @@ class Command(BaseCommand):
|
|||||||
subscriptions_to_add.append(s)
|
subscriptions_to_add.append(s)
|
||||||
batch_bulk_create(Subscription, subscriptions_to_add)
|
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")
|
self.stdout.write("Successfully populated test database.\n")
|
||||||
if options["replay_old_messages"]:
|
if options["replay_old_messages"]:
|
||||||
restore_saved_messages()
|
restore_saved_messages()
|
||||||
|
|||||||
Reference in New Issue
Block a user