diff --git a/django/core/cache/backends/base.py b/django/core/cache/backends/base.py
index 9824fc4..5861eaf 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 smart_str(':'.join([key_prefix, str(version), key])) |
28 | 28 | |
29 | 29 | def get_key_func(key_func): |
30 | 30 | """ |
… |
… |
class BaseCache(object):
|
63 | 63 | except (ValueError, TypeError): |
64 | 64 | self._cull_frequency = 3 |
65 | 65 | |
66 | | self.key_prefix = smart_str(params.get('KEY_PREFIX', '')) |
| 66 | self.key_prefix = params.get('KEY_PREFIX', '') |
67 | 67 | self.version = params.get('VERSION', 1) |
68 | 68 | self.key_func = get_key_func(params.get('KEY_FUNCTION', None)) |
69 | 69 | |