diff --git a/machines/migrations/0064_auto_20171115_0253.py b/machines/migrations/0064_auto_20171115_0253.py new file mode 100644 index 00000000..a028e2cb --- /dev/null +++ b/machines/migrations/0064_auto_20171115_0253.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2017-11-15 01:53 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0063_auto_20171020_0040'), + ] + + operations = [ + migrations.AlterField( + model_name='text', + name='field2', + field=models.TextField(max_length=2047), + ), + ] diff --git a/machines/models.py b/machines/models.py index c2cd2143..6453f08a 100644 --- a/machines/models.py +++ b/machines/models.py @@ -388,7 +388,7 @@ class Text(models.Model): zone = models.ForeignKey('Extension', on_delete=models.PROTECT) field1 = models.CharField(max_length=255) - field2 = models.CharField(max_length=255) + field2 = models.TextField(max_length=2047) def __str__(self): return str(self.zone) + " : " + str(self.field1) + " " +\ diff --git a/machines/templates/machines/aff_txt.html b/machines/templates/machines/aff_txt.html index fd7c5ee6..eb060440 100644 --- a/machines/templates/machines/aff_txt.html +++ b/machines/templates/machines/aff_txt.html @@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,