from django.utils.translation import ungettext_lazy

from django_tables2_reports.tables import TableReport

class DashboardTable(TableReport):
    caption = ungettext_lazy('%d Row', '%d Rows')

    def get_caption_display(self):
        # Allow overriding the caption with an arbitrary string that we cannot
        # interpolate the number of rows in
        try:
            return self.caption % self.paginator.count
        except TypeError:
            pass
        return self.caption

    class Meta:
        template = 'dashboard/table.html'
        attrs = {'class': 'table table-striped table-bordered'}

from django.utils.translation import ungettext_lazy

from django_tables2_reports.tables import TableReport


class DashboardTable(TableReport):
    caption = ungettext_lazy('%d Row', '%d Rows')

    def get_caption_display(self):
        # Allow overriding the caption with an arbitrary string that we cannot
        # interpolate the number of rows in
        try:
            return self.caption % self.paginator.count
        except TypeError:
            pass
        return self.caption

    class Meta(object):
        template = 'dashboard/table.html'
        attrs = {'class': 'table table-striped table-bordered'}

Use new style class to allow for dynamic table class creation
Use new style class to allow for dynamic table class creation
