def datatype(dbtype, description):
 dt = connection.introspection.get_field_type(dbtype, description)
 if (type(dt) is tuple):
  return dt[0]
 else:
  return dt

def datatype ( dbtype , description ) : dt = connection . introspection . get_field_type ( dbtype , description ) if ( type ( dt ) is tuple ) : return dt [ 0 ] else : return dt
helper to convert a data type into a string .