do_change_bot_type: Add update_fields to user_profile.save().

This commit is contained in:
Eklavya Sharma
2016-05-24 19:54:53 +05:30
committed by Tim Abbott
parent f3e25c68c7
commit 508a080e08

View File

@@ -1631,7 +1631,7 @@ def do_change_is_admin(user_profile, value, permission='administer'):
def do_change_bot_type(user_profile, 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):
stream_name = stream_name.strip()