mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
Access the UserProfile's new is_active field rather than User's.
(imported from commit ed5bdaf3e3d6d20bfb741efdac48d30482ab9ef7)
This commit is contained in:
@@ -24,7 +24,7 @@ class Command(BaseCommand):
|
||||
|
||||
for realm in realms:
|
||||
print realm.domain
|
||||
user_profiles = UserProfile.objects.filter(realm=realm, user__is_active=True)
|
||||
user_profiles = UserProfile.objects.filter(realm=realm, is_active=True)
|
||||
print "%d users" % (len(user_profiles),)
|
||||
print "%d streams" % (len(Stream.objects.filter(realm=realm)),)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user