From 221087da7b2390cc4a740444d69c157f1e8df032 Mon Sep 17 00:00:00 2001 From: Glib Glugovskiy Date: Tue, 6 Oct 2026 20:36:06 +0200 Subject: [PATCH] fix: pin drf-yasg below 1.21.17 to unbreak collectstatic drf-yasg 1.21.17 ships redoc-old/redoc.min.js ending with '//# sourceMappingURL=redoc.min.map', while the bundled source map is redoc.min.js.map. ManifestStaticFilesStorage follows the reference and collectstatic fails, breaking unit_tests in the requirements bot PR (#3009). This is the same regression drf-yasg had in 1.21.6 (axnsan12/drf-yasg#855). --- requirements/constraints.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index ab0e09256..65aa49929 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -10,3 +10,8 @@ # Common constraints for edx repos -c common_constraints.txt + +# drf-yasg 1.21.17 ships redoc-old/redoc.min.js with "//# sourceMappingURL=redoc.min.map", +# but the bundled file is redoc.min.js.map, so collectstatic (ManifestStaticFilesStorage) fails. +# Same regression as https://github.com/axnsan12/drf-yasg/issues/855. Remove once fixed upstream. +drf-yasg<1.21.17