def form_valid ( self , form ) : auth_login ( self . request , form . get_user ( ) ) return HttpResponseRedirect ( self . get_success_url ( ) )
if user redirect python form security
Security check complete . Log the user in .
def form_valid(self, form):
        """Security check complete. Log the user in."""
        auth_login(self.request, form.get_user())
        return HttpResponseRedirect(self.get_success_url())