diff --git a/doc/source/ref/tables.rst b/doc/source/ref/tables.rst index ea371fc1f3..b2f22d896a 100644 --- a/doc/source/ref/tables.rst +++ b/doc/source/ref/tables.rst @@ -25,7 +25,7 @@ represented. Example:: name = Column('name') email = Column('email') - class Meta: + class Meta(object): name = "my_table" table_actions = (MyAction, MyOtherAction) row_actions - (MyAction) @@ -42,7 +42,7 @@ The following options can be defined in a ``Meta`` class inside a :class:`.DataTable` class. Example:: class MyTable(DataTable): - class Meta: + class Meta(object): name = "my_table" verbose_name = "My Table" diff --git a/doc/source/topics/tables.rst b/doc/source/topics/tables.rst index 0b1345dc56..913b4dadab 100644 --- a/doc/source/topics/tables.rst +++ b/doc/source/topics/tables.rst @@ -378,7 +378,7 @@ Example:: required=False), update_action=UpdateCell) - class Meta: + class Meta(object): name = "tenants" verbose_name = _("Projects") # Connection to UpdateRow, so table can fetch row data based on diff --git a/doc/source/tutorials/dashboard.rst b/doc/source/tutorials/dashboard.rst index d04c9bfa52..0e6d7e8a8f 100644 --- a/doc/source/tutorials/dashboard.rst +++ b/doc/source/tutorials/dashboard.rst @@ -252,7 +252,7 @@ following code:: verbose_name=_("Availability Zone")) image_name = tables.Column('image_name', verbose_name=_("Image Name")) - class Meta: + class Meta(object): name = "instances" verbose_name = _("Instances") @@ -309,7 +309,7 @@ must first define the action:: Then, we add that action to the table actions for our table.:: class InstancesTable: - class Meta: + class Meta(object): table_actions = (MyFilterAction,) @@ -334,7 +334,7 @@ The completed ``tables.py`` file should look like the following:: image_name = tables.Column('image_name', \ verbose_name=_("Image Name")) - class Meta: + class Meta(object): name = "instances" verbose_name = _("Instances") table_actions = (MyFilterAction,) diff --git a/doc/source/tutorials/table_actions.rst b/doc/source/tutorials/table_actions.rst index fab72b1b43..a2229953e3 100644 --- a/doc/source/tutorials/table_actions.rst +++ b/doc/source/tutorials/table_actions.rst @@ -262,7 +262,7 @@ The complete ``tables.py`` file should look like this:: zone = tables.Column('availability_zone', verbose_name=_("Availability Zone")) image_name = tables.Column('image_name', verbose_name=_("Image Name")) - class Meta: + class Meta(object): name = "instances" verbose_name = _("Instances") table_actions = (MyFilterAction,)