From ba228b75b17a69da663bc4321a71471d0055280c Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Tue, 14 Mar 2017 16:05:46 -0700 Subject: [PATCH] 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. --- zilencer/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,