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