mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
Use update_fields more consistently when modifying model objects.
(imported from commit a3f0c308b621b5ff85c55654f187e25749192b19)
This commit is contained in:
@@ -45,7 +45,7 @@ class Command(BaseCommand):
|
||||
if options["for_real"]:
|
||||
tutorial_user = subscribers[0]
|
||||
tutorial_user.active = False
|
||||
tutorial_user.save()
|
||||
tutorial_user.save(update_fields=["active"])
|
||||
|
||||
if options["for_real"]:
|
||||
print "Subscriptions deactivated."
|
||||
|
||||
Reference in New Issue
Block a user