From 56114c251f7dfa7ade998866b76b2530ef61461b Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 22 Aug 2018 09:27:45 -0400 Subject: [PATCH] Fix crash of privacy page for logged out user --- brutaldon/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index 21c87a6..1ccde65 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -638,7 +638,7 @@ def about(request): def privacy(request): return render(request, 'privacy.html', {"fullbrutalism": fullbrutalism_p(request), - 'own_acct' : request.session['user', None]}) + 'own_acct' : request.session.get('user', None)}) @cache_page(60 * 30) @br_login_required