activity: Use realm owners, not realm administrators.

The analytics system was not properly updated when we replaced realm
owners with realm administrators.
This commit is contained in:
Tim Abbott
2021-04-08 17:29:05 -07:00
parent e0b1818780
commit 6b1ca15ba7
3 changed files with 8 additions and 8 deletions

View File

@@ -83,9 +83,9 @@ class Command(BaseCommand):
"Shylock",
realm,
full_name="Shylock",
role=UserProfile.ROLE_REALM_ADMINISTRATOR,
role=UserProfile.ROLE_REALM_OWNER,
)
do_change_user_role(shylock, UserProfile.ROLE_REALM_ADMINISTRATOR, acting_user=None)
do_change_user_role(shylock, UserProfile.ROLE_REALM_OWNER, acting_user=None)
stream = Stream.objects.create(name="all", realm=realm, date_created=installation_time)
recipient = Recipient.objects.create(type_id=stream.id, type=Recipient.STREAM)
stream.recipient = recipient