#NEWLINE# def formfield( self , **kwargs ) : #NEWLINE# #INDENT# defaults = { #NEWLINE# #INDENT# 'form_class' : forms . IntegerField , #NEWLINE# 'max_value' : self . max_value , #NEWLINE# 'min_value' : self . min_value , #NEWLINE# #UNINDENT# } #NEWLINE# defaults . update ( kwargs ) #NEWLINE# return super ( LimitedIntegerField , self ) . formfield ( ** defaults )