

def get_context(self):
    context = super(RevisionListView, self).get_context()
    opts = self.opts
    action_list = [{
        'revision': version.revision,
        'url': self.model_admin_url('revision', quote(version.object_id), version.id),
        'version': version,
    } for version in self._order_version_queryset(self.revision_manager.get_for_object_reference(self.model, self.obj.pk).select_related('revision__user'))]
    context.update({
        'title': (_('Change history: %s') % force_unicode(self.obj)),
        'action_list': action_list,
        'model_name': capfirst(force_unicode(opts.verbose_name_plural)),
        'object': self.obj,
        'app_label': opts.app_label,
        'changelist_url': self.model_admin_url('changelist'),
        'update_url': self.model_admin_url('change', self.obj.pk),
        'opts': opts,
    })
    return context

dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py RevisionListView.get_context/original