Commit 887cd473 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue Committed by chirac

Affiche les champs TXT et rend field1 facultatif.

parent e0f82c7d
# -*- 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),
),
]
......@@ -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:
......
......@@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th></th>
</tr>
</thead>
{% for txt in text_list %}
{% for txt in txt_list %}
<tr>
<td>{{ txt.zone }}</td>
<td>{{ txt.dns_entry }}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment