From 897cf4a6107e7915606ba18cdf7dcb074ff00f73 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 25 Jan 2024 15:49:19 +0100 Subject: [PATCH] corporate: Update Customer model string method for remote realm case. --- corporate/models.py | 2 ++ 1 file changed, 2 insertions(+) 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})"