diff --git a/machines/migrations/0094_auto_20180809_1652.py b/machines/migrations/0094_auto_20180809_1652.py new file mode 100644 index 00000000..7121cfde --- /dev/null +++ b/machines/migrations/0094_auto_20180809_1652.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-08-09 14:52 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0093_auto_20180807_1115'), + ] + + operations = [ + migrations.AlterField( + model_name='txt', + name='field1', + field=models.CharField(blank=True, max_length=255), + ), + ] diff --git a/machines/models.py b/machines/models.py index 2e77f25c..22c8126e 100644 --- a/machines/models.py +++ b/machines/models.py @@ -786,7 +786,7 @@ class Txt(RevMixin, AclMixin, models.Model): PRETTY_NAME = "Enregistrement TXT" zone = models.ForeignKey('Extension', on_delete=models.PROTECT) - field1 = models.CharField(max_length=255) + field1 = models.CharField(max_length=255, blank=True) field2 = models.TextField(max_length=2047) class Meta: diff --git a/machines/templates/machines/aff_txt.html b/machines/templates/machines/aff_txt.html index e961d7a9..27d78d11 100644 --- a/machines/templates/machines/aff_txt.html +++ b/machines/templates/machines/aff_txt.html @@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - {% for txt in text_list %} + {% for txt in txt_list %} {{ txt.zone }} {{ txt.dns_entry }}