mirror of https://github.com/zulip/zulip.git
delete_realm: Use Message.realm column for message count.
This commit is contained in:
parent
601f0677f3
commit
ebc144896f
|
@ -25,7 +25,7 @@ realms used for testing; consider using deactivate_realm instead."""
|
|||
is_bot=False,
|
||||
).count()
|
||||
|
||||
message_count = Message.objects.filter(sender__realm=realm).count()
|
||||
message_count = Message.objects.filter(realm=realm).count()
|
||||
|
||||
print(f"This realm has {user_count} users and {message_count} messages.\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue