mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
models: Add BOT_OWNER_CHANGED event type constant to RealmAuditLog.
This commit is contained in:
@@ -2832,7 +2832,7 @@ def do_change_bot_owner(user_profile: UserProfile, bot_owner: UserProfile,
|
||||
user_profile.save() # Can't use update_fields because of how the foreign key works.
|
||||
event_time = timezone_now()
|
||||
RealmAuditLog.objects.create(realm=user_profile.realm, acting_user=acting_user,
|
||||
modified_user=user_profile, event_type='bot_owner_changed',
|
||||
modified_user=user_profile, event_type=RealmAuditLog.BOT_OWNER_CHANGED,
|
||||
event_time=event_time)
|
||||
|
||||
update_users = bot_owner_user_ids(user_profile)
|
||||
|
||||
Reference in New Issue
Block a user