membershipworks: Add a __str__ method for EventMeetingTime

This commit is contained in:
Adam Goldsmith 2024-06-05 13:09:03 -04:00
parent 521c6cd52a
commit c3f3294f2a

View File

@ -633,6 +633,9 @@ class EventMeetingTime(models.Model):
models.CheckConstraint(check=Q(end__gt=F("start")), name="end_after_start"), 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): class EventInvoice(models.Model):
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)