diff --git a/zilencer/models.py b/zilencer/models.py index 6ada0ee0e2..e8bea24f20 100644 --- a/zilencer/models.py +++ b/zilencer/models.py @@ -4,9 +4,9 @@ from typing import Dict, Text import zerver.models -def get_deployment_by_domain(domain): +def get_deployment_by_domain(realm_str): # type: (Text) -> Deployment - return Deployment.objects.get(realms__domain=domain) + return Deployment.objects.get(realms__string_id=realm_str) class Deployment(models.Model): realms = models.ManyToManyField(zerver.models.Realm,