#NEWLINE# def __new__( mcs , name , bases , attrs ) : #NEWLINE# #INDENT# fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# new_attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( name , value ) in attrs . iteritems ( ) : #NEWLINE# #INDENT# if isinstance ( value , Field ) : #NEWLINE# #INDENT# fields . update ( { #NEWLINE# #INDENT# name : value , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_attrs . update ( { #NEWLINE# #INDENT# name : value , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# new_attrs [ '_fields' ] = fields #NEWLINE# return super ( ModelMeta , mcs ) . __new__ ( mcs , name , bases , new_attrs )