mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
do_change_bot_type: Add update_fields to user_profile.save().
This commit is contained in:
committed by
Tim Abbott
parent
f3e25c68c7
commit
508a080e08
@@ -1631,7 +1631,7 @@ def do_change_is_admin(user_profile, value, permission='administer'):
|
|||||||
|
|
||||||
def do_change_bot_type(user_profile, value):
|
def do_change_bot_type(user_profile, value):
|
||||||
user_profile.bot_type = value
|
user_profile.bot_type = value
|
||||||
user_profile.save()
|
user_profile.save(update_fields=["bot_type"])
|
||||||
|
|
||||||
def do_make_stream_public(user_profile, realm, stream_name):
|
def do_make_stream_public(user_profile, realm, stream_name):
|
||||||
stream_name = stream_name.strip()
|
stream_name = stream_name.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user