  
      def model_class(self):
          "Returns the Python model class for this type of content."
          from django.db import models
          return models.get_model(self.app_label, self.model)
  
      def get_object_for_this_type(self, **kwargs):
          """
          Returns an object of this type for the keyword arguments given.
          Basically, this is a proxy around this object_type's get_object() model
 
</s> remove     def get_models(self, app_mod=None, include_auto_created=False, include_deferred=False):
 </s> add     def get_models(self, app_mod=None,
                   include_auto_created=False, include_deferred=False): </s> remove         return get_model(new_class._meta.app_label, name, False)
 </s> add         return get_model(new_class._meta.app_label, name,
                         seed_cache=False, only_installed=False) </s> remove     def get_model(self, app_label, model_name, seed_cache=True):
 </s> add     def get_model(self, app_label, model_name,
                  seed_cache=True, only_installed=True): </s> remove from django.db.models.loading import cache, load_app
 </s> add from django.db.models.loading import cache, load_app, get_model, get_models
        return models.get_model(self.app_label, self.model,
                                only_installed=False)
  
      def model_class(self):
          "Returns the Python model class for this type of content."
          from django.db import models
        return models.get_model(self.app_label, self.model,
                                only_installed=False)
  
      def get_object_for_this_type(self, **kwargs):
          """
          Returns an object of this type for the keyword arguments given.
          Basically, this is a proxy around this object_type's get_object() model
keep keep keep keep replace keep keep keep keep keep
 Fixed #15866, #15850 -- Prevented get_model() and get_models() from returning not-installed models (by default). Thanks adsva for report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16053 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/contenttypes/models.py