From 09d333dacbec01d5bd3db7e5414340f8cf648ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C5=9F=C4=B1k=20Kaplan?= Date: Thu, 17 Oct 2024 20:58:43 +0300 Subject: [PATCH] Update plumbing.py --- drf_spectacular/plumbing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drf_spectacular/plumbing.py b/drf_spectacular/plumbing.py index 2f721250..ba559c3a 100644 --- a/drf_spectacular/plumbing.py +++ b/drf_spectacular/plumbing.py @@ -1280,7 +1280,7 @@ def build_mock_request(method, path, view, original_request, **kwargs): def set_query_parameters(url, **kwargs) -> str: """ deconstruct url, safely attach query parameters in kwargs, and serialize again """ - url = str(url) # Force evaluation of reverse_lazy urls + url = str(url) # Force evaluation of reverse_lazy urls scheme, netloc, path, params, query, fragment = urllib.parse.urlparse(url) query = urllib.parse.parse_qs(query) query.update({k: v for k, v in kwargs.items() if v is not None})