code: def _is_lang_change(self, request):
          
          if 'lang' not in request.GET:
              return False
  
          return not any(request.path.endswith(url) for url in self.exempt_urls)
docs: Return True if the lang param is present and URL isn't exempt.