Ticket #16993: fix-cache.base.backends.get_default_key.patch
File fix-cache.base.backends.get_default_key.patch, 571 bytes (added by , 13 years ago) |
---|
-
django/core/cache/backends/base.py
diff --git a/django/core/cache/backends/base.py b/django/core/cache/backends/base.py index 9824fc4..df92b90 100644
a b def default_key_func(key, key_prefix, version): 24 24 the `key_prefix'. KEY_FUNCTION can be used to specify an alternate 25 25 function with custom key making behavior. 26 26 """ 27 return ':'.join([ key_prefix, str(version), smart_str(key)])27 return ':'.join([str(key_prefix), str(version), str(smart_str(key))]) 28 28 29 29 def get_key_func(key_func): 30 30 """