mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user