mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 03:23:50 +00:00
models: Fix return type of get_realm_domains.
The correct return type of get_realm_domains should be List[Dict[str, Union[bool, str]]] instead of List[Dict[str, str]] because allowed_subdomains is a bool field not str.
This commit is contained in:
@@ -1049,7 +1049,7 @@ class EmailContainsPlusError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def get_realm_domains(realm: Realm) -> List[Dict[str, str]]:
|
||||
def get_realm_domains(realm: Realm) -> List[Dict[str, Union[str, bool]]]:
|
||||
return list(realm.realmdomain_set.values("domain", "allow_subdomains"))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user