          # Because of the way imports happen (recursively), we may or may not be
          # the first class for this model to register with the framework. There
          # should only be one class for each model, so we must always return the
          # registered version.
          return get_model(new_class._meta.app_label, name)
  
  class Model(object):
      __metaclass__ = ModelBase
  
      def _get_pk_val(self):
 
</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 def get_model(app_label, model_name):
 </s> add def get_model(app_label, model_name, seed_cache = True): </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.

        return get_model(new_class._meta.app_label, name, False)
          # Because of the way imports happen (recursively), we may or may not be
          # the first class for this model to register with the framework. There
          # should only be one class for each model, so we must always return the
          # registered version.
        return get_model(new_class._meta.app_label, name, False)
  
  class Model(object):
      __metaclass__ = ModelBase
  
      def _get_pk_val(self):
keep keep keep keep replace 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/base.py