'Return object data in easily serializeable format'

@property
def serialize(self):

    return {'id': self.id, 'announcement': self.announcement, 'starts_at': (self.starts_at.strftime('%Y-%m-%dT%H:%M:%S%Z') if self.starts_at else ''), 'ends_at': (self.ends_at.strftime('%Y-%m-%dT%H:%M:%S%Z') if self.ends_at else ''), 'privacy': self.privacy, 'hash': self.hash}
