Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions webpack_loader/templatetags/webpack_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django import template
from django import template, VERSION
from django.conf import settings
from django.utils.safestring import mark_safe

Expand Down Expand Up @@ -50,7 +50,8 @@ def webpack_static(asset_name, config='DEFAULT'):
)


@register.assignment_tag
assignment_tag = register.simple_tag if VERSION >= (1, 9) else register.assignment_tag
@assignment_tag
def get_files(bundle_name, extension=None, config='DEFAULT'):
"""
Returns all chunks in the given bundle.
Expand Down