From 438397d7b26fe097ab5c0f25fc4e8982cb907df5 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 12 Sep 2025 11:25:21 -0400 Subject: [PATCH] fix: Upgrade django-webpack-loader to match webpack-bundle-tracker The versions of these two tools is now kept in sync. As a part of the migration, the method signature for render_bundle changes which we needed to update in our Mako templates where it doesn't automatically pass context. --- .../djangoapps/pipeline_mako/templates/static_content.html | 6 +++--- requirements/constraints.txt | 5 ----- requirements/edx/base.txt | 3 +-- requirements/edx/development.txt | 3 +-- requirements/edx/doc.txt | 3 +-- requirements/edx/testing.txt | 3 +-- 6 files changed, 7 insertions(+), 16 deletions(-) diff --git a/common/djangoapps/pipeline_mako/templates/static_content.html b/common/djangoapps/pipeline_mako/templates/static_content.html index a5a2a575b0..fc80c77e9e 100644 --- a/common/djangoapps/pipeline_mako/templates/static_content.html +++ b/common/djangoapps/pipeline_mako/templates/static_content.html @@ -147,7 +147,7 @@ if not source: <% body = capture(caller.body) %> - ${HTML(render_bundle(entry, extension=None, config='DEFAULT', attrs=attrs))} + ${HTML(render_bundle(context, entry, extension=None, config='DEFAULT', attrs=attrs))} % if body: