From c3f3294f2ad5ee7881fdf5ccb7d9d9b671886d48 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 5 Jun 2024 13:09:03 -0400 Subject: [PATCH] membershipworks: Add a `__str__` method for EventMeetingTime --- membershipworks/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/membershipworks/models.py b/membershipworks/models.py index 5b0eafb..1f8bb03 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -633,6 +633,9 @@ class EventMeetingTime(models.Model): models.CheckConstraint(check=Q(end__gt=F("start")), name="end_after_start"), ] + def __str__(self) -> str: + return f"{self.start} - {self.end}" + class EventInvoice(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)