#NEWLINE# def _check_radio_fields( self , obj ) : #NEWLINE# #INDENT# ' Check that `radio_fields` is a dictionary. ' #NEWLINE# if ( not hasattr ( obj , 'radio_fields' ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( obj . radio_fields , dict ) ) : #NEWLINE# #INDENT# return must_be ( 'a dictionary' , option = 'radio_fields' , obj = obj , id = 'admin.E021' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return list ( chain ( * [ ( self . _check_radio_fields_key ( obj , obj . model , field_name , 'radio_fields' ) + self . _check_radio_fields_value ( obj , val , ( 'radio_fields["%s"]' % field_name ) ) ) for ( field_name , val ) in obj . radio_fields . items ( ) ] ) )