Re: ManyToMany automatic caching

2005-08-24 Thread adrian
... actually I guess this isn't much of a problem for most people, since these instances will probably actually have very short lived scopes. But it would sure be a mistake to use django.core.cache to cache one of these objects.

ManyToMany automatic caching

2005-08-24 Thread adrian
Models with ManyToMany relationships cache related objects over that relationship in an instance attribute. For example if my model class 'salad' has a ManyToMany to my model class 'soup', then my 'caesarsalad' instance will have an attribute called '_soups_cache' and when I call "caesarsalad.get