          if seed_cache:
              self._populate()
          return self.app_models.get(app_label, SortedDict()).get(model_name.lower())
  
      def register_models(self, app_label, *models):
          """
 
</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                 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)
        if only_installed and app_label not in self.app_labels:
            return None
          if seed_cache:
              self._populate()
        if only_installed and app_label not in self.app_labels:
            return None
          return self.app_models.get(app_label, SortedDict()).get(model_name.lower())
  
      def register_models(self, app_label, *models):
          """
keep add 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