Add convenience method to ContentTypeManager
|Reported by:||jdunck||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||yes|
app_label, model_name (e.g. ('news', 'story')) is often passed around internally in our codebase.
The attached patch would be nice in Django, since otherwise we do a little hula to get the ContentType object. Doing a direct query would miss the handy cache ContentTypeManager includes.
Change History (10)
Changed 8 years ago by jdunck
comment:2 Changed 8 years ago by jacob
- milestone post-1.0 deleted
- Triage Stage changed from Unreviewed to Accepted
comment:5 Changed 5 years ago by gabrielhurley
- Component changed from Contrib apps to contrib.contenttypes