Commit f6d349fe by Ben Vinegar Committed by Timothée Peignier

Don't extract version from filename if COMPRESS_VERSION is False

parent 246b1093
...@@ -103,7 +103,7 @@ class CompressedJSNode(template.Node): ...@@ -103,7 +103,7 @@ class CompressedJSNode(template.Node):
else: else:
filename_base, filename = os.path.split(js['output_filename']) filename_base, filename = os.path.split(js['output_filename'])
path_name = compress_root(filename_base) path_name = compress_root(filename_base)
version = get_version_from_file(path_name, filename) version = get_version_from_file(path_name, filename) if settings.COMPRESS_VERSION else None
return render_js(js, js['output_filename'], version) return render_js(js, js['output_filename'], version)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment