From ead9f8e32e8a7591cf3fc40a234c1a7a0dc9ea3b Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 21 Nov 2017 15:43:54 +0100
Subject: [PATCH] TypeError fixed

---
 scipost/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scipost/views.py b/scipost/views.py
index 4b3fab594..a29e63996 100644
--- a/scipost/views.py
+++ b/scipost/views.py
@@ -1322,7 +1322,7 @@ def csrf_failure(request, reason=""):
     """
     Custom CRSF Failure. Informing admins via email as well.
     """
-    body = 'Error message: ' + reason + '\nUser: ' + request.user
-    body += '\nRequest GET: ' + request.GET + '\nRequest POST: ' + request.POST
+    body = 'Error message: ' + reason + '\nUser: ' + str(request.user)
+    body += '\nRequest GET: ' + str(request.GET) + '\nRequest POST: ' + str(request.POST)
     mail.mail_admins('CRSF Failure', body)
     return render(request, 'crsf-failure.html')
-- 
GitLab