def history_view(self, request, object_id, extra_context=None): opts = self.model._meta context = dict(self.get_context(), **(extra_context if extra_context else {})) return views.history_log(request, object_id, self.model, ("admin/%s/%s/object_fullhistory.html" % (opts.app_label, opts.object_name.lower()), "admin/%s/object_fullhistory.html" % opts.app_label, "admin/object_fullhistory.html"), context)
def history_view(self, request, object_id): opts = self.model._meta return views.history_log(request, object_id, self.model, ("admin/%s/%s/object_fullhistory.html" % (opts.app_label, opts.object_name.lower()), "admin/%s/object_fullhistory.html" % opts.app_label, "admin/object_fullhistory.html"), {'root_path': self.admin_site.root_path, 'admin_name': self.admin_site.name,})
def history_view(self, request, object_id, model): opts = model._meta return views.history_log(request, object_id, model, ("admin/%s/%s/object_fullhistory.html" % (opts.app_label, opts.object_name.lower()), "admin/%s/object_fullhistory.html" % opts.app_label, "admin/object_fullhistory.html"), {'root_path': self.root_path, 'admin_name': getattr(self, 'name', 'admin'),})
def history_view(self, request, object_id, model): opts = model._meta return views.history_log(request, object_id, model, ("admin/%s/%s/object_fullhistory.html" % (opts.app_label, opts.object_name.lower()), "admin/%s/object_fullhistory.html" % opts.app_label, "admin/object_fullhistory.html"), { 'admin_name': getattr(self, 'name', 'admin'),})
def history_view( self, request, object_id, model, ): opts = model._meta return views.history_log(request, object_id, model, ('admin/%s/%s/object_fullhistory.html' % (opts.app_label, opts.object_name.lower()), 'admin/%s/object_fullhistory.html' % opts.app_label, 'admin/object_fullhistory.html'), {'root_path': self.root_path, 'admin_name': self.name})