#NEWLINE# @ fattr ( alters_data = True ) #NEWLINE# def save( self , commit = True ) : #NEWLINE# #INDENT# cleaned_data = self . cleaned_data #NEWLINE# instance = super ( EntityForm , self ) . save ( commit = False ) #NEWLINE# for f in instance . _entity_meta . proxy_fields : #NEWLINE# #INDENT# if ( ( not f . editable ) or ( not ( f . name in cleaned_data ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( self . _meta . fields and ( f . name not in self . _meta . fields ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( self . _meta . exclude and ( f . name in self . _meta . exclude ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# setattr ( cleaned_data , f . attname , f . get_storage_value ( cleaned_data [ f . name ] ) ) #NEWLINE# #UNINDENT# if commit : #NEWLINE# #INDENT# instance . save ( ) #NEWLINE# self . save_m2m ( ) #NEWLINE# #UNINDENT# return instance