

def get_context_data(self, **kwargs):
    context = super(IndexView, self).get_context_data(**kwargs)
    try:
        context['version'] = version.version_info.version_string()
    except Exception:
        exceptions.handle(self.request, _('Unable to retrieve version information.'))
    return context

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/admin/info/views.py IndexView.get_context_data/original