mirror of https://github.com/zulip/zulip.git
Make the default Dev VM user Iago a Zulip admin.
(imported from commit ebec7b44c1d7fdbd270ee534f2c5453a21ae3884)
This commit is contained in:
parent
dedc83e5dd
commit
a9023935e4
|
@ -9,7 +9,7 @@ from zerver.models import Message, UserProfile, Stream, Recipient, Client, \
|
||||||
get_huddle_hash, clear_database, get_client, get_user_profile_by_id, \
|
get_huddle_hash, clear_database, get_client, get_user_profile_by_id, \
|
||||||
split_email_to_domain, email_to_username
|
split_email_to_domain, email_to_username
|
||||||
from zerver.lib.actions import do_send_message, set_default_streams, \
|
from zerver.lib.actions import do_send_message, set_default_streams, \
|
||||||
do_activate_user, do_deactivate_user, do_change_password
|
do_activate_user, do_deactivate_user, do_change_password, do_change_is_admin
|
||||||
from zerver.lib.parallel import run_parallel
|
from zerver.lib.parallel import run_parallel
|
||||||
from django.db.models import Count
|
from django.db.models import Count
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -144,6 +144,8 @@ class Command(BaseCommand):
|
||||||
for i in xrange(options["extra_users"]):
|
for i in xrange(options["extra_users"]):
|
||||||
names.append(('Extra User %d' % (i,), 'extrauser%d@zulip.com' % (i,)))
|
names.append(('Extra User %d' % (i,), 'extrauser%d@zulip.com' % (i,)))
|
||||||
create_users(realms, names)
|
create_users(realms, names)
|
||||||
|
iago = UserProfile.objects.get(email="iago@zulip.com")
|
||||||
|
do_change_is_admin(iago, True)
|
||||||
# Create public streams.
|
# Create public streams.
|
||||||
stream_list = ["Verona", "Denmark", "Scotland", "Venice", "Rome"]
|
stream_list = ["Verona", "Denmark", "Scotland", "Venice", "Rome"]
|
||||||
create_streams(realms, zulip_realm, stream_list)
|
create_streams(realms, zulip_realm, stream_list)
|
||||||
|
|
Loading…
Reference in New Issue