#NEWLINE# def _new( cls , name , bases , attrs ) : #NEWLINE# #INDENT# if ( cls == ModelFormMetaclass ) : #NEWLINE# #INDENT# m = attrs . get ( '__metaclass__' , None ) #NEWLINE# if ( m is None ) : #NEWLINE# #INDENT# parents = [ b for b in bases if issubclass ( b , ModelForm ) ] #NEWLINE# for c in parents : #NEWLINE# #INDENT# if ( c . __metaclass__ != ModelFormMetaclass ) : #NEWLINE# #INDENT# m = c . __metaclass__ #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( m is not None ) : #NEWLINE# #INDENT# return m ( name , bases , attrs ) #NEWLINE# #UNINDENT# #UNINDENT# return _old ( cls , name , bases , attrs )