Commit 17fdf1c3 by Timothée Peignier

Merge branch 'master' of github.com:e-loue/django-compress

parents 24a71934 f6d349fe
......@@ -103,7 +103,7 @@ class CompressedJSNode(template.Node):
else:
filename_base, filename = os.path.split(js['output_filename'])
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)
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