mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Replaced many smart_bytes by force_bytes
In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
This commit is contained in:
parent
9eafb6592e
commit
ebc773ada3
32 changed files with 74 additions and 77 deletions
|
@ -864,7 +864,7 @@ key version to provide a final cache key. By default, the three parts
|
|||
are joined using colons to produce a final string::
|
||||
|
||||
def make_key(key, key_prefix, version):
|
||||
return ':'.join([key_prefix, str(version), smart_bytes(key)])
|
||||
return ':'.join([key_prefix, str(version), key])
|
||||
|
||||
If you want to combine the parts in different ways, or apply other
|
||||
processing to the final key (e.g., taking a hash digest of the key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue