#NEWLINE# def form_valid( self , form ) : #NEWLINE# #INDENT# self . space = get_object_or_404 ( Space , url = form . kwargs [ 'space_url' ] ) #NEWLINE# form_uncommited = form . save ( commit = False ) #NEWLINE# form_uncommited . space = self . space #NEWLINE# form_uncommited . author = self . request . user #NEWLINE# form_uncommited . save ( ) #NEWLINE# return super ( AddDocument , self ) . form_valid ( form )