diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py index 79c20fa9f0..9338888161 100644 --- a/zilencer/management/commands/populate_db.py +++ b/zilencer/management/commands/populate_db.py @@ -330,18 +330,14 @@ class Command(BaseCommand): ) RealmDomain.objects.create(realm=mit_realm, domain="mit.edu") - lear_realm = Realm.objects.create( + lear_realm = do_create_realm( string_id="lear", name="Lear & Co.", emails_restricted_to_domains=False, invite_required=False, + plan_type=Realm.SELF_HOSTED, org_type=Realm.CORPORATE, ) - RealmAuditLog.objects.create( - realm=lear_realm, - event_type=RealmAuditLog.REALM_CREATED, - event_time=lear_realm.date_created, - ) # Default to allowing all members to send mentions in # large streams for the test suite to keep