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

This commit is contained in:
Lauryn Menard 2024-01-25 15:49:19 +01:00 committed by Tim Abbott
parent 0003c3c1ef
commit 897cf4a610
1 changed files with 2 additions and 0 deletions

View File

@ -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})"