mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user