#NEWLINE# def get_form_class( self , request ) : #NEWLINE# #INDENT# defaults = { #NEWLINE# #INDENT# 'form' : self . form , #NEWLINE# 'formfield_callback' : partial ( self . formfield_for_dbfield , request = request ) , #NEWLINE# 'fields' : '__all__' , #NEWLINE# #UNINDENT# } #NEWLINE# form_class = modelform_factory ( self . __class__ , ** defaults ) #NEWLINE# if ( not hasattr ( form_class , 'required_css_class' ) ) : #NEWLINE# #INDENT# form_class . required_css_class = 'required' #NEWLINE# #UNINDENT# if ( not hasattr ( form_class , 'error_css_class' ) ) : #NEWLINE# #INDENT# form_class . error_css_class = 'error' #NEWLINE# #UNINDENT# return form_class