class documentation
class ContentTypeManager(models.Manager): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | clear |
Clear out the content-type cache. |
Method | get |
Undocumented |
Method | get |
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 |
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 |
Given *models, return a dictionary mapping {model: content_type}. |
Class Variable | use |
Undocumented |
Method | _add |
Insert a ContentType into the cache. |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _cache |
Undocumented |
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).
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.