#NEWLINE# def save_to_db( self , form_data , request , referrer ) : #NEWLINE# #INDENT# user = ( request . user if request . user . is_authenticated ( ) else None ) #NEWLINE# FormSubmission . objects . create ( plugin = self . form_definition . plugin_reference , ip = get_ip ( request ) , referrer = referrer , form_data = form_data , created_by = referrer )