mirror of https://github.com/zulip/zulip.git
zilencer: Use Realm.string_id for get_deployment_from_domain.
This is dead code. Getting rid of realm__domain since we're about to remove that field from Realm.
This commit is contained in:
parent
8fecd454aa
commit
ba228b75b1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue