#NEWLINE# def save_new( self , form , commit = True ) : #NEWLINE# #INDENT# setattr ( self . instance , self . ct_field . get_attname ( ) , ContentType . objects . get_for_model ( self . instance ) . pk ) #NEWLINE# setattr ( form . instance , self . ct_fk_field . get_attname ( ) , self . instance . pk ) #NEWLINE# return form . save ( commit = commit )