diff --git a/corporate/models.py b/corporate/models.py index 13911e78f9..cec410bb9a 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})"