Don't fill in body, will be removing it from model.

This commit is contained in:
Pēteris Caune 2015-12-12 16:59:58 +02:00
parent 0cf4e5c9df
commit 33ad56728c

View File

@ -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")