Commits

edanm  committed 9b80842

Not displaying a back to userpage link when there is an error

  • Participants
  • Parent commits 55cbc00

Comments (0)

Files changed (1)

File stack2blog/stack2blogapp/views.py

 	if request.method == 'GET':
 		# Get any error messages waiting.
 		error_message = request.session.get("error_message", "")
+		print error_message
+		if error_message != "":
+			request.session["so_userid"] = None
+
 		request.session["error_message"] = ""
 
 		return render_to_response('home.html', locals(), context_instance=RequestContext(request))