code: def has_permission(self, user):
          
          return user.has_perm(
              self.model._meta.app_label + '.' + self.get_permission()
          )
docs: Returns True if the given request has permission to use the tool.
          Can be overriden by the user in subclasses.