#19221: Cache keys can't be integers
-------------------------------------+--------------------
     Reporter:  mhsparks             |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  Core (Cache system)  |    Version:  master
     Severity:  Normal               |   Keywords:
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+--------------------
 In current master cache keys can't be integers whilst they can in 1.4.
 Attempts to do this result in:

 {{{
   File "/home/ismdj/src/django/django/core/cache/backends/dummy.py", line
 15, in get
     key = self.make_key(key, version=version)
   File "/home/ismdj/src/django/django/core/cache/backends/base.py", line
 80, in make_key
     new_key = self.key_func(key, self.key_prefix, version)
   File "/home/ismdj/src/django/django/core/cache/backends/base.py", line
 26, in default_key_func
     return ':'.join([key_prefix, str(version), key])
 TypeError: sequence item 2: expected string or Unicode, int found
 }}}

 The issue seems to have been introduced with this commit:

 
https://github.com/django/django/commit/45baaabafb6cf911afad9ec63c86753b284f7269

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19221>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to