Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
corporate: Update string for Customer model.
Lauryn Menard85ab5b70e9e2
diff --git a/corporate/models.py b/corporate/models.pyindex 25e8bc2e7e5..add61ef3247 100644--- a/corporate/models.py+++ b/corporate/models.py@@ -39,7 +39,10 @@ class Customer(models.Model):@overridedef __str__(self) -> str:- return f"{self.realm!r} {self.stripe_customer_id}"+ if self.realm is not None:+ return f"{self.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})"def get_customer_by_realm(realm: Realm) -> Optional[Customer]: