Fix pages which assume broadcasts have a finish time

They no longer have a finish time until they have been approved.
Previously it was the person preparing the broadcast who chose when it
should finish.
This commit is contained in:
Chris Hill-Scott
2020-08-19 15:10:44 +01:00
parent 1acc3b55eb
commit 283393024d
4 changed files with 3 additions and 6 deletions

View File

@@ -41,9 +41,9 @@ class BroadcastMessage(JSONModel):
def __lt__(self, other):
return (
self.cancelled_at or self.finishes_at
self.cancelled_at or self.finishes_at or self.created_at
) < (
other.cancelled_at or other.finishes_at
other.cancelled_at or other.finishes_at or self.created_at
)
@classmethod