'Adds a ``{{ table_name }}_table`` item to the context for each table.
The target tables are specified by
the :attr:`~horizon.tabs.TableTab.table_classes` attribute.
If only one table class is provided, a shortcut ``table`` context
variable is also added containing the single table.'

def get_context_data(self, request, **kwargs):

    context = super(TableTab, self).get_context_data(request, **kwargs)
    self.load_table_data()
    for (table_name, table) in self._tables.items():
        if (len(self.table_classes) == 1):
            context['table'] = table
        context[('%s_table' % table_name)] = table
    return context
