| Home | Trees | Indices | Help |
|---|
|
|
db.models.Manager --+
|
ContentTypeManager
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_cache = {}
|
|||
|
|||
Returns the ContentType object for a given model, creating the ContentType if necessary. Lookups are cached so that subsequent lookups for the same model don't hit the database. |
Lookup a ContentType by ID. Uses the same shared cache as get_for_model (though ContentTypes are obviously not created on-the-fly by get_by_id). |
Clear out the content-type cache. This needs to happen during database flushes to prevent caching of "stale" content type IDs (see django.contrib.contenttypes.management.update_contenttypes for where this gets called). |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 17 18:52:16 2008 | http://epydoc.sourceforge.net |