membershipworks: Add a __str__
method for EventMeetingTime
This commit is contained in:
parent
521c6cd52a
commit
c3f3294f2a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user