#NEWLINE# def conv_TimeField( self , model , field , kwargs ) : #NEWLINE# #INDENT# def time_only( obj ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return obj . time ( ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return obj #NEWLINE# #UNINDENT# #UNINDENT# kwargs [ 'filters' ] . append ( time_only ) #NEWLINE# return f . DateTimeField ( widget = form . DateTimePickerWidget ( ) , format = '%H:%M:%S' , ** field )