Ticket #16993: fix-cache.base.backends.get_default_key.patch

File fix-cache.base.backends.get_default_key.patch, 571 bytes (added by adsworth, 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):  
    2424    the `key_prefix'. KEY_FUNCTION can be used to specify an alternate
    2525    function with custom key making behavior.
    2626    """
    27     return ':'.join([key_prefix, str(version), smart_str(key)])
     27    return ':'.join([str(key_prefix), str(version), str(smart_str(key))])
    2828
    2929def get_key_func(key_func):
    3030    """
Back to Top