Commit f40c453d by Sander Smits

added settings.COMPRESS_VERSION_METHOD to needs_update function call

parent 257ff266
...@@ -21,7 +21,8 @@ class Command(NoArgsCommand): ...@@ -21,7 +21,8 @@ class Command(NoArgsCommand):
from compress.utils import needs_update, filter_css, filter_js from compress.utils import needs_update, filter_css, filter_js
for name, css in settings.COMPRESS_CSS.items(): for name, css in settings.COMPRESS_CSS.items():
u, version = needs_update(css['output_filename'], css['source_filenames']) u, version = needs_update(css['output_filename'],
css['source_filenames'], settings.COMPRESS_VERSION_METHOD)
if (force or u) or verbosity >= 2: if (force or u) or verbosity >= 2:
msg = 'CSS Group \'%s\'' % name msg = 'CSS Group \'%s\'' % name
...@@ -36,7 +37,8 @@ class Command(NoArgsCommand): ...@@ -36,7 +37,8 @@ class Command(NoArgsCommand):
print print
for name, js in settings.COMPRESS_JS.items(): for name, js in settings.COMPRESS_JS.items():
u, version = needs_update(js['output_filename'], js['source_filenames']) u, version = needs_update(js['output_filename'],
js['source_filenames'], settings.COMPRESS_VERSION_METHOD)
if (force or u) or verbosity >= 2: if (force or u) or verbosity >= 2:
msg = 'JavaScript Group \'%s\'' % name msg = 'JavaScript Group \'%s\'' % name
......
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