def import_field(field_classpath):
 if (u'.' in field_classpath):
  fully_qualified = field_classpath
 else:
  fully_qualified = (u'django.db.models.%s' % field_classpath)
 try:
  return import_dotted_path(fully_qualified)
 except ImportError:
  raise ImproperlyConfigured((u"The EXTRA_MODEL_FIELDS setting contains the field '%s' which could not be imported." % field_classpath))

def import_field ( field_classpath ) : if ( u'.' in field_classpath ) : fully_qualified = field_classpath else : fully_qualified = ( u'django.db.models.%s' % field_classpath ) try : return import_dotted_path ( fully_qualified ) except ImportError : raise ImproperlyConfigured ( ( u"The EXTRA_MODEL_FIELDS setting contains the field '%s' which could not be imported." % field_classpath ) )
imports a field by its dotted class path .