コード例 #1
0
 def history_version_view(self, request, object_id, version):
     opts = self.model._meta
     return views.history_version(request, 
                                  object_id, 
                                  version,
                                  self.model, 
                                  ("admin/%s/%s/object_version_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                   "admin/%s/object_version_fullhistory.html" % opts.app_label,
                                   "admin/object_version_fullhistory.html"), self.get_context())
コード例 #2
0
ファイル: admin.py プロジェクト: vishnu81/KLP-MIS
 def history_version_view(self, request, object_id, version, model):
     opts = model._meta
     return views.history_version(request, 
                                  object_id, 
                                  version,
                                  model,
                                  ("admin/%s/%s/object_version_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                   "admin/%s/object_version_fullhistory.html" % opts.app_label,
                                   "admin/object_version_fullhistory.html"),
                                  {'root_path': self.root_path,
                                   'admin_name': self.name,})
コード例 #3
0
ファイル: admin.py プロジェクト: fevzidas/oam
 def history_version_view(self, request, object_id, version):
     opts = self.model._meta
     return views.history_version(
         request, object_id, version, self.model,
         ("admin/%s/%s/object_version_fullhistory.html" %
          (opts.app_label, opts.object_name.lower()),
          "admin/%s/object_version_fullhistory.html" % opts.app_label,
          "admin/object_version_fullhistory.html"), {
              'root_path': self.admin_site.root_path,
              'admin_name': getattr(self.admin_site, 'name', 'admin'),
          })
コード例 #4
0
 def history_version_view(self, request, object_id, version):
     opts = self.model._meta
     return views.history_version(request, 
                                  object_id, 
                                  version,
                                  self.model, 
                                  ("admin/%s/%s/object_version_fullhistory.html" % (opts.app_label, opts.object_name.lower()),
                                   "admin/%s/object_version_fullhistory.html" % opts.app_label,
                                   "admin/object_version_fullhistory.html"),
                                  {'root_path': self.admin_site.root_path,
                                   'admin_name': getattr(self.admin_site, 'name', 'admin'),})
コード例 #5
0
ファイル: admin.py プロジェクト: klpdotorg/KLP-MIS
 def history_version_view(
     self,
     request,
     object_id,
     version,
     ):
     opts = self.model._meta
     return views.history_version(
         request,
         object_id,
         version,
         self.model,
         ('admin/%s/%s/object_version_fullhistory.html'
          % (opts.app_label, opts.object_name.lower()),
          'admin/%s/object_version_fullhistory.html'
          % opts.app_label, 'admin/object_version_fullhistory.html'
          ),
         {'root_path': self.admin_site.root_path,
          'admin_name': self.admin_site.name},
         )