8000 Fix static_with_version with ManifestStaticFilesStorage · beijaflor-io/django-cms@4c2ff47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c2ff47

Browse files
author
Sylvain Fankhauser
committed
Fix static_with_version with ManifestStaticFilesStorage
Fixes django-cms#5963.
1 parent 79e9d84 commit 4c2ff47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cms/templatetags/cms_static.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ def do_static_with_version(parser, token):
2828
class StaticWithVersionNode(StaticNode):
2929

3030
def url(self, context):
31-
url = super(StaticWithVersionNode, self).url(context)
32-
return static_with_version(url)
31+
path = self.path.resolve(context)
32+
path_with_version = static_with_version(path)
33+
34+
return self.handle_simple(path_with_version)

0 commit comments

Comments
 (0)
0