class ContentTypeManager(models.Manager):
Undocumented
Method | clear_cache |
Clear out the content-type cache. |
Method | get_by_natural_key |
Undocumented |
Method | get_for_id |
Lookup a ContentType by ID. Use the same shared cache as get_for_model (though ContentTypes are not created on-the-fly by get_by_id). |
Method | get_for_model |
Return 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. |
Method | get_for_models |
Given *models, return a dictionary mapping {model: content_type}. |
Method | __init__ |
Undocumented |
Method | _add_to_cache |
Insert a ContentType into the cache. |
Method | _get_from_cache |
Undocumented |
Method | _get_opts |
Undocumented |
Class Variable | use_in_migrations |
Undocumented |
Instance Variable | _cache |
Undocumented |