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:
Rishi Gupta 2017-03-14 16:05:46 -07:00 committed by Tim Abbott
parent 8fecd454aa
commit ba228b75b1
1 changed files with 2 additions and 2 deletions

View File

@ -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,