code: def process_response(self, request, response):
          
          if hasattr(threadlocal, 'actionslog'):
              pre_save.disconnect(sender=LogAction, dispatch_uid=threadlocal.actionslog['signal_duid'])
  
          return response
docs: Disconnects the signal receiver to prevent it from staying active.