We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19b39d commit 7be24f3Copy full SHA for 7be24f3
webpack_loader/templatetags/webpack_loader.py
@@ -25,9 +25,9 @@ def render_bundle(
25
if skip_common_chunks:
26
warn(message=_WARNING_MESSAGE, category=RuntimeWarning)
27
return mark_safe('\n'.join(tags))
28
- used_tags = getattr(context['request'], '_webpack_loader_used_tags', None)
+ used_tags = getattr(request, '_webpack_loader_used_tags', None)
29
if not used_tags:
30
- used_tags = context['request']._webpack_loader_used_tags = set()
+ used_tags = request._webpack_loader_used_tags = set()
31
32
tags = [tag for tag in tags if tag not in used_tags]
33
used_tags.update(tags)
0 commit comments