code: def get_forum_perms_base_context(self, request, obj=None):
          
          context = {
              'adminform': {'model_admin': self},
              'media': self.media,
              'object': obj,
              'app_label': self.model._meta.app_label,
              'opts': self.model._meta,
              'has_change_permission': self.has_change_permission(request, obj),
          }
          try:
              context.update(self.admin_site.each_context(request))
          except TypeError:  # pragma: no cover
              # Django 1.7 compatibility
              context.update(self.admin_site.each_context())
          except AttributeError:  # pragma: no cover
              pass
          return context
docs: Returns the context to provide to the template for permissions contents.