      model_name.
  
      Returns None if no model is found.
      """
      try:
          model_dict = _app_models[app_label]
      except KeyError:
          return None
  
 
</s> remove     Returns the model matching the given app_label and case-insensitive model_name.
 </s> add     Returns the model matching the given app_label and case-insensitive
    model_name.
 </s> remove def get_model(app_label, model_name):
 </s> add def get_model(app_label, model_name, seed_cache = True): </s> remove         m = get_model(new_class._meta.app_label, name)
 </s> add         m = get_model(new_class._meta.app_label, name, False) </s> remove         return get_model(new_class._meta.app_label, name)
 </s> add         return get_model(new_class._meta.app_label, name, False)
    if seed_cache:
        get_apps()
      model_name.
  
      Returns None if no model is found.
      """
    if seed_cache:
        get_apps()
      try:
          model_dict = _app_models[app_label]
      except KeyError:
          return None
  
keep keep keep add keep keep keep keep keep
 Seed the global app cache in a call to db.models.get_model() except when we are
constructing a model class. Refs #2348.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3490 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/db/models/loading.py