'Insert a ContentType into the cache.'

def _add_to_cache(self, using, ct):

    key = (ct.app_label, ct.model)
    self.__class__._cache.setdefault(using, {})[key] = ct
    self.__class__._cache.setdefault(using, {})[ct.id] = ct
