示例#1
0
 def history_audit_view(self, request, object_id):
     opts = self.model._meta
     return views.history_audit(request, 
                                object_id, 
                                self.model, 
                                ("admin/%s/%s/object_audit_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                 "admin/%s/object_audit_fullhistory.html" % opts.app_label,
                                 "admin/object_audit_fullhistory.html"), self.get_context())
示例#2
0
文件: admin.py 项目: vishnu81/KLP-MIS
 def history_audit_view(self, request, object_id):
     opts = self.model._meta
     return views.history_audit(request, 
                                object_id, 
                                self.model, 
                                ("admin/%s/%s/object_audit_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                 "admin/%s/object_audit_fullhistory.html" % opts.app_label,
                                 "admin/object_audit_fullhistory.html"),
                                {'root_path': self.admin_site.root_path,
                                 'admin_name': self.admin_site.name,})
示例#3
0
 def history_audit_view(self, request, object_id, model):
     opts = model._meta
     return views.history_audit(request, 
                                object_id, 
                                model, 
                                ("admin/%s/%s/object_audit_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                 "admin/%s/object_audit_fullhistory.html" % opts.app_label,
                                 "admin/object_audit_fullhistory.html"),
                                {'root_path': self.root_path,
                                 'admin_name': getattr(self, 'name', 'admin'),})
示例#4
0
 def history_audit_view(self, request, object_id, model):
     opts = model._meta
     return views.history_audit(request, 
                                object_id, 
                                model, 
                                ("admin/%s/%s/object_audit_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                 "admin/%s/object_audit_fullhistory.html" % opts.app_label,
                                 "admin/object_audit_fullhistory.html"),
                                {
                                 'admin_name': getattr(self, 'name', 'admin'),})
示例#5
0
 def history_audit_view(
     self,
     request,
     object_id,
     model,
     ):
     opts = model._meta
     return views.history_audit(request, object_id, model,
                                ('admin/%s/%s/object_audit_fullhistory.html'
                                 % (opts.app_label,
                                opts.object_name.lower()),
                                'admin/%s/object_audit_fullhistory.html'
                                 % opts.app_label,
                                'admin/object_audit_fullhistory.html'
                                ), {'root_path': self.root_path,
                                'admin_name': self.name})