from django_tables2 import TemplateColumn

from oscar.apps.dashboard.catalogue.tables import ProductTable as BaseProductTable


class ProductTable(BaseProductTable):
    live = TemplateColumn(verbose_name='Live', template_name='dashboard/catalogue/product_row_live.html',
                          orderable=False)

    class Meta(BaseProductTable.Meta):
        sequence = (
            'title', 'upc', 'image', 'product_class', 'variants', 'live', 'stock_records', '...', 'date_updated',
            'actions')
