#NEWLINE# def new( self , name , phone = None , fax = None ) : #NEWLINE# #INDENT# ( obj , created ) = Author . objects . get_or_create ( name = 'Testauthor' ) #NEWLINE# contact = Contact . objects . create ( name = name , phone = phone , fax = fax , author = self ) #NEWLINE# return serialize ( contact , excludes = [ re . compile ( '^datetime_' ) ] , include_pk = True )