#NEWLINE# def get_db_prep_value( self , value , connection , prepared = False ) : #NEWLINE# #INDENT# 'Convert a value to DB storage.\n\n        Returns the state name.\n        ' #NEWLINE# if ( not prepared ) : #NEWLINE# #INDENT# value = self . get_prep_value ( self ) #NEWLINE# #UNINDENT# return value . state . name