mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Use update_fields more consistently when modifying model objects.
(imported from commit a3f0c308b621b5ff85c55654f187e25749192b19)
This commit is contained in:
@@ -936,7 +936,7 @@ def subscribed_to_stream(user_profile, stream):
|
||||
|
||||
def do_update_onboarding_steps(user_profile, steps):
|
||||
user_profile.onboarding_steps = ujson.dumps(steps)
|
||||
user_profile.save()
|
||||
user_profile.save(update_fields=["onboarding_steps"])
|
||||
|
||||
log_event({'type': 'update_onboarding',
|
||||
'user': user_profile.email,
|
||||
|
||||
Reference in New Issue
Block a user