'Adds the ``tab_group`` variable to the context data.'

def get_context_data(self, **kwargs):

    context = super(TabView, self).get_context_data(**kwargs)
    try:
        tab_group = self.get_tabs(self.request, **kwargs)
        context['tab_group'] = tab_group
        context['tab_group'].load_tab_data()
    except Exception:
        exceptions.handle(self.request)
    return context
