

def recoverlist_view(self, request, extra_context=None):
    'Displays a deleted model to allow recovery.'
    if ((not self.has_change_permission(request)) or (not self.has_add_permission(request))):
        raise PermissionDenied
    model = self.model
    opts = model._meta
    deleted = self._order_version_queryset(self.revision_manager.get_deleted(self.model))
    try:
        each_context = self.admin_site.each_context(request)
    except TypeError:
        each_context = self.admin_site.each_context()
    context = dict(each_context, opts=opts, app_label=opts.app_label, module_name=capfirst(opts.verbose_name), title=(_('Recover deleted %(name)s') % {
        'name': force_text(opts.verbose_name_plural),
    }), deleted=deleted)
    context.update((extra_context or {
        
    }))
    return render(request, (self.recover_list_template or self._get_template_list('recover_list.html')), context)

dataset/ETHPy150Open etianen/django-reversion/src/reversion/admin.py VersionAdmin.recoverlist_view/original