code: def user_logged_out(self, sender, request: AxesHttpRequest, user, **kwargs):  # pylint: disable=unused-argument
          
  
          # 1. database query: Clean up expired user attempts from the database
          clean_expired_user_attempts(request.axes_attempt_time)
  
          username = user.get_username()
          client_str = get_client_str(username, request.axes_ip_address, request.axes_user_agent, request.axes_path_info)
  
          log.info('AXES: Successful logout by %s.', client_str)
  
          if username and not settings.AXES_DISABLE_ACCESS_LOG:
              # 2. database query: Update existing attempt logs with logout time
              AccessLog.objects.filter(
                  username=username,
                  logout_time__isnull=True,
              ).update(
                  logout_time=request.axes_attempt_time,
              )
docs: When user logs out, update the AccessLog related to the user.