#NEWLINE# def formfield_for_choice_field( self , db_field , request = None , **kwargs ) : #NEWLINE# #INDENT# '\n        Get a form Field for a database Field that has declared choices.\n        ' #NEWLINE# if ( db_field . name in self . radio_fields ) : #NEWLINE# #INDENT# if ( 'widget' not in kwargs ) : #NEWLINE# #INDENT# kwargs [ 'widget' ] = widgets . AdminRadioSelect ( attrs = { #NEWLINE# #INDENT# 'class' : get_ul_class ( self . radio_fields [ db_field . name ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'choices' not in kwargs ) : #NEWLINE# #INDENT# kwargs [ 'choices' ] = db_field . get_choices ( include_blank = db_field . blank , blank_choice = [ ( '' , _ ( 'None' ) ) ] ) #NEWLINE# #UNINDENT# #UNINDENT# return formfield ( db_field , ** kwargs )