diff --git a/zerver/lib/bulk_create.py b/zerver/lib/bulk_create.py index 77c0f814b6..49986e9e2f 100644 --- a/zerver/lib/bulk_create.py +++ b/zerver/lib/bulk_create.py @@ -20,7 +20,8 @@ def bulk_create_users(realm, users_raw, bot_type=None, tos_version=None): for (email, full_name, short_name, active) in users: profile = create_user_profile(realm, email, initial_password(email), active, bot_type, - full_name, short_name, None, False, tos_version) + full_name, short_name, None, False, tos_version, + tutorial_status=UserProfile.TUTORIAL_FINISHED) profiles_to_create.append(profile) UserProfile.objects.bulk_create(profiles_to_create) diff --git a/zerver/lib/create_user.py b/zerver/lib/create_user.py index d6d4a2b9c5..aef45f5775 100644 --- a/zerver/lib/create_user.py +++ b/zerver/lib/create_user.py @@ -25,8 +25,9 @@ def random_api_key(): # create_user (below) which will also make the Subscription and # Recipient objects def create_user_profile(realm, email, password, active, bot_type, full_name, - short_name, bot_owner, is_mirror_dummy, tos_version): - # type: (Realm, Text, Optional[Text], bool, Optional[int], Text, Text, Optional[UserProfile], bool, Optional[Text]) -> UserProfile + short_name, bot_owner, is_mirror_dummy, tos_version, + tutorial_status=UserProfile.TUTORIAL_WAITING): + # type: (Realm, Text, Optional[Text], bool, Optional[int], Text, Text, Optional[UserProfile], bool, Optional[Text], Optional[Text]) -> UserProfile now = timezone.now() email = UserManager.normalize_email(email) @@ -36,6 +37,7 @@ def create_user_profile(realm, email, password, active, bot_type, full_name, pointer=-1, is_bot=bool(bot_type), bot_type=bot_type, bot_owner=bot_owner, is_mirror_dummy=is_mirror_dummy, tos_version=tos_version, + tutorial_status=tutorial_status, onboarding_steps=ujson.dumps([]), default_language=realm.default_language)