Allow body to be null for easier db migration.

This commit is contained in:
Pēteris Caune 2018-03-18 15:10:08 +02:00
parent 02f6853d4c
commit 282412f4ba
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-18 12:16
# Generated by Django 1.11.6 on 2018-03-18 13:06
from __future__ import unicode_literals
from django.db import migrations, models
@ -20,6 +20,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='ping',
name='body',
field=models.CharField(blank=True, max_length=10000),
field=models.CharField(blank=True, max_length=10000, null=True),
),
]

View File

@ -214,7 +214,7 @@ 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.CharField(max_length=10000, blank=True)
body = models.CharField(max_length=10000, blank=True, null=True)
class Channel(models.Model):