Permalink
Browse files

Whoops, I meant hasattr

  • Loading branch information...
1 parent ec2767e commit e4b85ec804a65c78eb35a8573d5c134a37c3d90b @bradwright committed Apr 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 templatetags/static_combo.py
@@ -51,7 +51,7 @@ def _group_file_names_and_output(parent_name, output_format, inheritance_key):
if os.path.exists(file_path):
# need to append a cachebust as per static_asset
to_output = output_format % os.path.join(settings.MEDIA_URL, file_name)
- if getattr(settings, 'STATIC_MANAGEMENT_CACHEBUST') and settings.STATIC_MANAGEMENT_CACHEBUST:
+ if hasattr(settings, 'STATIC_MANAGEMENT_CACHEBUST') and settings.STATIC_MANAGEMENT_CACHEBUST:
to_output += "?cachebust=%s" % time.time()
output += to_output
else:

0 comments on commit e4b85ec

Please sign in to comment.