On 4 окт, 22:16, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Have a look at CONTENT_TYPE_CACHE in > django/contrib/contenttypes/models.py.
I've done .get method with caching by model and app_label (and even without app_label). I'm not sure it is clean to be added as ticket with patch for Django, but maybe it will be interesting for someone, so here is the code: http://trac.piranha.org.ua/browser/byteflow/lib/db.py it is applied here: http://trac.piranha.org.ua/browser/byteflow/patches.py P.S. Malcolm, if you think it is clean and good enough to be added as patch, I'd like to do that! - maybe after cleaning up from `get_without_app`. -- Alexander --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---