(self)
Return the class to use for the table.
Return the class to use for the table.
Return the class to use for the table .
def get_table_class(self):
        """
        Return the class to use for the table.
        """
        if self.table_class:
            return self.table_class
        if self.model:
            return tables.table_factory(self.model)

        raise ImproperlyConfigured(
            "You must either specify {0}.table_class or {0}.model".format(type(self).__name__)
        )
def get_table_class ( self ) : if self . table_class : return self . table_class if self . model : return tables . table_factory ( self . model ) raise ImproperlyConfigured ( "You must either specify {0}.table_class or {0}.model" . format ( type ( self ) . __name__ ) )