def verbose_field_name(model, field_name):
 if (field_name is None):
  return '[invalid name]'
 parts = get_field_parts(model, field_name)
 if (not parts):
  return '[invalid name]'
 names = []
 for part in parts:
  if isinstance(part, ForeignObjectRel):
   names.append(force_text(part.related_name))
  else:
   names.append(force_text(part.verbose_name))
 return ' '.join(names)

def verbose_field_name ( model , field_name ) : if ( field_name is None ) : return '[invalid name]' parts = get_field_parts ( model , field_name ) if ( not parts ) : return '[invalid name]' names = [ ] for part in parts : if isinstance ( part , ForeignObjectRel ) : names . append ( force_text ( part . related_name ) ) else : names . append ( force_text ( part . verbose_name ) ) return ' ' . join ( names )
get the verbose name for a given field_name .