(self)
Return the table data that should be used to populate the rows.
Return the table data that should be used to populate the rows.
Return the table data that should be used to populate the rows .
def get_table_data(self):
        """
        Return the table data that should be used to populate the rows.
        """
        if self.table_data is not None:
            return self.table_data
        elif hasattr(self, "object_list"):
            return self.object_list
        elif hasattr(self, "get_queryset"):
            return self.get_queryset()

        klass = type(self).__name__
        raise ImproperlyConfigured(
            "Table data was not specified. Define {}.table_data".format(klass)
        )
def get_table_data ( self ) : if self . table_data is not None : return self . table_data elif hasattr ( self , "object_list" ) : return self . object_list elif hasattr ( self , "get_queryset" ) : return self . get_queryset ( ) klass = type ( self ) . __name__ raise ImproperlyConfigured ( "Table data was not specified. Define {}.table_data" . format ( klass ) )