Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

corporate: Update Customer model string method for remote realm case.

Lauryn Menard897cf4a6107e
diff --git a/corporate/models.py b/corporate/models.py
index 13911e78f9b..cec410bb9a0 100644
--- a/corporate/models.py
+++ b/corporate/models.py
@@ -59,6 +59,8 @@ class Customer(models.Model):
def __str__(self) -> str:
if self.realm is not None:
return f"{self.realm!r} (with stripe_customer_id: {self.stripe_customer_id})"
+ elif self.remote_realm is not None:
+ return f"{self.remote_realm!r} (with stripe_customer_id: {self.stripe_customer_id})"
else:
return f"{self.remote_server!r} (with stripe_customer_id: {self.stripe_customer_id})"