﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19221	Cache keys can't be integers	Mark Hughes	Abhimanyu Singh Negi	"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


"	Bug	closed	Core (Cache system)	dev	Normal	fixed		Carl Meyer dan@… Ülgen Sarıkavak	Accepted	1	0	0	0	0	0
