          app_labels = {},
  
          # Mapping of app_labels to a dictionary of model names to model code.
          app_models = SortedDict(),
  
          # Mapping of app_labels to errors raised when trying to import the app.
          app_errors = {},
  
 
</s> remove     model = get_model(app_label, model_name, False)
 </s> add     model = get_model(app_label, model_name,
                      seed_cache=False, only_installed=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         m = get_model(new_class._meta.app_label, name, False)
 </s> add         m = get_model(new_class._meta.app_label, name,
                      seed_cache=False, only_installed=False) </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)
        # May contain apps that are not installed.
          app_labels = {},
  
          # Mapping of app_labels to a dictionary of model names to model code.
        # May contain apps that are not installed.
          app_models = SortedDict(),
  
          # Mapping of app_labels to errors raised when trying to import the app.
          app_errors = {},
  
keep keep add 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