From b6a4285f1bc4b22275fe03c571fd24508805e1fa Mon Sep 17 00:00:00 2001 From: Eric Steinborn Date: Fri, 20 Apr 2018 12:46:48 -0400 Subject: [PATCH] adjust max message size limit --- twilio_mgr/migrations/0009_message.py | 2 +- twilio_mgr/migrations/0010_auto_20180402_1857.py | 2 +- twilio_mgr/migrations/0012_auto_20180402_1919.py | 2 +- twilio_mgr/migrations/0021_auto_20180412_2019.py | 2 +- twilio_mgr/models.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/twilio_mgr/migrations/0009_message.py b/twilio_mgr/migrations/0009_message.py index d6f58ea..26562f7 100644 --- a/twilio_mgr/migrations/0009_message.py +++ b/twilio_mgr/migrations/0009_message.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('message', models.CharField(max_length=400)), + ('message', models.CharField(max_length=1000)), ('keyword', models.CharField(max_length=100)), ], ), diff --git a/twilio_mgr/migrations/0010_auto_20180402_1857.py b/twilio_mgr/migrations/0010_auto_20180402_1857.py index d380355..d55e513 100644 --- a/twilio_mgr/migrations/0010_auto_20180402_1857.py +++ b/twilio_mgr/migrations/0010_auto_20180402_1857.py @@ -13,6 +13,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='message', name='message', - field=models.CharField(max_length=400, unique=True), + field=models.CharField(max_length=1000, unique=True), ), ] diff --git a/twilio_mgr/migrations/0012_auto_20180402_1919.py b/twilio_mgr/migrations/0012_auto_20180402_1919.py index c2be377..6c499ea 100644 --- a/twilio_mgr/migrations/0012_auto_20180402_1919.py +++ b/twilio_mgr/migrations/0012_auto_20180402_1919.py @@ -13,6 +13,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='messagelog', name='message', - field=models.CharField(max_length=400, null=True), + field=models.CharField(max_length=1000, null=True), ), ] diff --git a/twilio_mgr/migrations/0021_auto_20180412_2019.py b/twilio_mgr/migrations/0021_auto_20180412_2019.py index a3add4d..af18550 100644 --- a/twilio_mgr/migrations/0021_auto_20180412_2019.py +++ b/twilio_mgr/migrations/0021_auto_20180412_2019.py @@ -18,6 +18,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='message', name='message', - field=models.CharField(max_length=400), + field=models.CharField(max_length=1000), ), ] diff --git a/twilio_mgr/models.py b/twilio_mgr/models.py index b448b69..16b2bcd 100644 --- a/twilio_mgr/models.py +++ b/twilio_mgr/models.py @@ -50,7 +50,7 @@ def __str__(self): class Message(models.Model): - message = models.CharField(max_length=400) + message = models.CharField(max_length=1000) keyword = models.CharField(max_length=100,unique=True) @@ -60,7 +60,7 @@ def __str__(self): class MessageLog(models.Model): sms_number = models.CharField(max_length=100, null=True, blank=True) #models.ForeignKey(SmsNumber, null=True, on_delete=models.SET_NULL) email = models.CharField(max_length=100, null=True, blank=True) - message = models.CharField(max_length=400, null=True) + message = models.CharField(max_length=1000, null=True) date_sent = models.DateTimeField(auto_now_add=True, blank=True) def __str__(self):