'Return object data in easily serializeable format'

@property
def serialize(self):

    data = {'id': self.id, 'name': self.name, 'quantity': self.quantity, 'position': self.position, 'type': self.type, 'description_visibility': self.is_description_visible, 'description': self.description, 'price': self.price, 'sales_start_date': (self.sales_starts_at.strftime('%m/%d/%Y') if self.sales_starts_at else ''), 'sales_starts_at': (self.sales_starts_at.strftime('%H:%M') if self.sales_starts_at else ''), 'sales_end_date': (self.sales_ends_at.strftime('%m/%d/%Y') if self.sales_ends_at else ''), 'sales_ends_at': (self.sales_ends_at.strftime('%H:%M') if self.sales_ends_at else ''), 'ticket_visibility': self.hide, 'min_order': self.min_order, 'max_order': self.max_order, 'tags_string': '', 'has_orders': self.has_order_tickets(), 'has_completed_orders': self.has_completed_order_tickets(), 'is_fee_absorbed': self.is_fee_absorbed}
    tags = []
    for tag in self.tags:
        tags.append(tag.name)
    data['tags'] = ','.join(tags)
    return data
