code: def disconnect(self, name, func, dispatch_uid=None):
          
          try:
              signal = self._registry[name]
          except KeyError:
              return
  
          signal.disconnect(func, dispatch_uid=dispatch_uid)
docs: Disconnects a function from a hook
  
          :param str name: The hook name
          :param callable func: A function reference registered previously
          :param str dispatch_uid: optional unique id,\
          see :py:class:`django.dispatch.Signal` for more info.