Skip to content

Commit 7be24f3

Browse files
karolyifjsj
authored andcommitted
Simplifying logic
1 parent b19b39d commit 7be24f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack_loader/templatetags/webpack_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def render_bundle(
2525
if skip_common_chunks:
2626
warn(message=_WARNING_MESSAGE, category=RuntimeWarning)
2727
return mark_safe('\n'.join(tags))
28-
used_tags = getattr(context['request'], '_webpack_loader_used_tags', None)
28+
used_tags = getattr(request, '_webpack_loader_used_tags', None)
2929
if not used_tags:
30-
used_tags = context['request']._webpack_loader_used_tags = set()
30+
used_tags = request._webpack_loader_used_tags = set()
3131
if skip_common_chunks:
3232
tags = [tag for tag in tags if tag not in used_tags]
3333
used_tags.update(tags)

0 commit comments

Comments
 (0)