          self.nesting_level -= 1
          if models not in self.app_store:
              self.app_store[models] = len(self.app_store)
          return models
  
      def app_cache_ready(self):
          """
          Returns true if the model cache is fully populated.
  
 
</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) </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     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             app_list = [self.app_models.get(app_mod.__name__.split('.')[-2], SortedDict())]
 </s> add             if app_mod in self.app_store:
                app_list = [self.app_models.get(self._label_for(app_mod),
                                                SortedDict())]
            else:
                app_list = []
            self.app_labels[self._label_for(models)] = models
          self.nesting_level -= 1
          if models not in self.app_store:
              self.app_store[models] = len(self.app_store)
            self.app_labels[self._label_for(models)] = models
          return models
  
      def app_cache_ready(self):
          """
          Returns true if the model cache is fully populated.
  
keep keep add keep 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