mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-21 19:03:11 +00:00
Affiche les champs TXT et rend field1 facultatif.
This commit is contained in:
parent
e0f82c7d6d
commit
887cd473bb
3 changed files with 22 additions and 2 deletions
20
machines/migrations/0094_auto_20180809_1652.py
Normal file
20
machines/migrations/0094_auto_20180809_1652.py
Normal file
|
@ -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),
|
||||
),
|
||||
]
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue