Ticket #10738: deferred_model_contenttype.2.diff
File deferred_model_contenttype.2.diff, 571 bytes (added by , 16 years ago) |
---|
-
django/contrib/contenttypes/models.py
14 14 ContentType if necessary. Lookups are cached so that subsequent lookups 15 15 for the same model don't hit the database. 16 16 """ 17 if model._deferred: 18 model = model._meta.proxy_for_model 17 19 opts = model._meta 18 20 key = (opts.app_label, opts.object_name.lower()) 19 21 try: