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:
parent
33ad56728c
commit
d51d7ed181
3 changed files with 18 additions and 2 deletions
hc/api
18
hc/api/migrations/0018_remove_ping_body.py
Normal file
18
hc/api/migrations/0018_remove_ping_body.py
Normal 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',
|
||||
),
|
||||
]
|
|
@ -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):
|
||||
|
|
|
@ -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/")
|
||||
|
|
Loading…
Reference in a new issue