              )
          self._get_models_cache[cache_key] = model_list
          return model_list
  
      def get_model(self, app_label, model_name, seed_cache=True):
          """
          Returns the model matching the given app_label and case-insensitive
          model_name.
  
          Returns None if no model is found.
 
</s> remove                 if ((not model._deferred or include_deferred)
                    and (not model._meta.auto_created or include_auto_created))
 </s> add                 if ((not model._deferred or include_deferred) and
                    (not model._meta.auto_created or include_auto_created)) </s> remove         return models.get_model(self.app_label, self.model)
 </s> add         return models.get_model(self.app_label, self.model,
                                only_installed=False)
    def get_model(self, app_label, model_name,
                  seed_cache=True, only_installed=True):
              )
          self._get_models_cache[cache_key] = model_list
          return model_list
  
    def get_model(self, app_label, model_name,
                  seed_cache=True, only_installed=True):
          """
          Returns the model matching the given app_label and case-insensitive
          model_name.
  
          Returns None if no model is found.
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/db/models/loading.py