Use correct dict init for versions < 2.7
The primary key of a model can be a string --> changed syntax for base_cache_key