mirror of https://github.com/zulip/zulip.git
corporate: Update Customer model string method for remote realm case.
This commit is contained in:
parent
0003c3c1ef
commit
897cf4a610
|
@ -59,6 +59,8 @@ class Customer(models.Model):
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
if self.realm is not None:
|
if self.realm is not None:
|
||||||
return f"{self.realm!r} (with stripe_customer_id: {self.stripe_customer_id})"
|
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:
|
else:
|
||||||
return f"{self.remote_server!r} (with stripe_customer_id: {self.stripe_customer_id})"
|
return f"{self.remote_server!r} (with stripe_customer_id: {self.stripe_customer_id})"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue