#NEWLINE# def post( self , request ) : #NEWLINE# #INDENT# form = UploadForm ( request . POST , request . FILES ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# wfile = form . save ( commit = False ) #NEWLINE# if wfile . cleaned_data [ 'password' ] : #NEWLINE# #INDENT# wfile . set_password ( form . cleaned_data [ 'password' ] ) #NEWLINE# #UNINDENT# wfile . save ( ) #NEWLINE# return HttpResponseRedirect ( reverse ( 'web:show-home' ) ) #NEWLINE# #UNINDENT# return self . render_to_response ( self . template_name , { #NEWLINE# #INDENT# 'form' : form , #NEWLINE# #UNINDENT# } )