0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-03-17 05:32:44 +00:00

Remove body field from Ping model.

This commit is contained in:
Pēteris Caune 2015-12-12 17:03:34 +02:00
parent 33ad56728c
commit d51d7ed181
3 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0017_auto_20151117_1032'),
]
operations = [
migrations.RemoveField(
model_name='ping',
name='body',
),
]

View file

@ -97,7 +97,6 @@ class Ping(models.Model):
remote_addr = models.GenericIPAddressField(blank=True, null=True)
method = models.CharField(max_length=10, blank=True)
ua = models.CharField(max_length=200, blank=True)
body = models.TextField(blank=True)
class Channel(models.Model):

View file

@ -30,7 +30,6 @@ class EmailTestCase(TestCase):
pings = list(Ping.objects.all())
assert pings[0].scheme == "email"
assert pings[0].body == "This is raw message"
def test_it_rejects_get(self):
r = self.client.get("/handle_email/")