#NEWLINE# def prepare_checkbox( self , field ) : #NEWLINE# #INDENT# field_attrs = field . build_field_attrs ( ) #NEWLINE# widget_attrs = field . build_widget_attrs ( ) #NEWLINE# field_attrs . update ( { #NEWLINE# #INDENT# 'widget' : forms . CheckboxInput ( attrs = widget_attrs ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# if field . initial : #NEWLINE# #INDENT# field_attrs . update ( { #NEWLINE# #INDENT# 'initial' : self . to_bool ( field . initial ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return forms . BooleanField ( ** field_attrs )