#NEWLINE# def _hide_file_source_type( self ) : #NEWLINE# #INDENT# self . fields [ 'image_file' ] . widget = HiddenInput ( ) #NEWLINE# source_type = self . fields [ 'source_type' ] #NEWLINE# source_type . choices = [ choice for choice in self . choices if ( choice [ 0 ] != 'file' ) ] #NEWLINE# if ( len ( source_type . choices ) == 1 ) : #NEWLINE# #INDENT# source_type . widget = HiddenInput ( )