Ticket #7460: cache_replace_space_with_underscore.diff
File cache_replace_space_with_underscore.diff, 575 bytes (added by , 16 years ago) |
---|
-
django/templatetags/cache.py
diff -r a7be18090928 django/templatetags/cache.py
a b 16 16 # Build a unicode key for this fragment and all vary-on's. 17 17 cache_key = u':'.join([self.fragment_name] + \ 18 18 [force_unicode(resolve_variable(var, context)) for var in self.vary_on]) 19 cache_key = cache_key.replace(" ", "_") 19 20 value = cache.get(cache_key) 20 21 if value is None: 21 22 value = self.nodelist.render(context)