#NEWLINE# def _check_radio_fields_value( self , obj , val , label ) : #NEWLINE# #INDENT# ' Check type of a value of `radio_fields` dictionary. ' #NEWLINE# from django.contrib.admin.options import HORIZONTAL , VERTICAL #NEWLINE# if ( val not in ( HORIZONTAL , VERTICAL ) ) : #NEWLINE# #INDENT# return [ checks . Error ( ( "The value of '%s' must be either admin.HORIZONTAL or admin.VERTICAL." % label ) , obj = obj . __class__ , id = 'admin.E024' ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ ]