Browse Source

Remove body field from Ping model.

pull/20/head
Pēteris Caune 9 years ago
parent
commit
d51d7ed181
3 changed files with 18 additions and 2 deletions
  1. +18
    -0
      hc/api/migrations/0018_remove_ping_body.py
  2. +0
    -1
      hc/api/models.py
  3. +0
    -1
      hc/api/tests/test_email_webhook.py

+ 18
- 0
hc/api/migrations/0018_remove_ping_body.py 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',
),
]

+ 0
- 1
hc/api/models.py 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):


+ 0
- 1
hc/api/tests/test_email_webhook.py 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/")


Loading…
Cancel
Save