From 33ad56728c179d041b5c3d9b43b1e7558eb0c5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Sat, 12 Dec 2015 16:59:58 +0200 Subject: [PATCH] Don't fill in body, will be removing it from model. --- hc/api/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hc/api/views.py b/hc/api/views.py index a4ba53d1..3c00b6b2 100644 --- a/hc/api/views.py +++ b/hc/api/views.py @@ -29,7 +29,6 @@ def ping(request, code): ping.method = headers["REQUEST_METHOD"] # If User-Agent is longer than 200 characters, truncate it: ping.ua = headers.get("HTTP_USER_AGENT", "")[:200] - ping.body = request.body ping.save() response = HttpResponse("OK") @@ -61,7 +60,6 @@ def handle_email(request): ping = Ping(owner=check) ping.scheme = "email" - ping.body = event["msg"]["raw_msg"] ping.save() response = HttpResponse("OK")