You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…franzel#1311
Passing reverse_lazy url to SpectacularRedocView errors because set_query_parameters calls urlls.parse.urlparse on url which may not be a string but a 'django.utils.functional.lazy.<locals>.__proxy__'. Forcing url to be string fixes this issue.
Describe the bug
Passing reverse_lazy url to SpectacularRedocView errors.
I've chased down the issue to drf_spectacular.plumbing.set_query_parameters which uses urllib.parse.urlparse which needs a string to work.
To Reproduce
It would be most helpful to provide a small snippet to see how the bug was provoked.
Expected behavior
If you change
it works as expected
The text was updated successfully, but these errors were encountered: