mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
[machines] Added a dnssec field to Extension
This commit is contained in:
parent
7b50419a82
commit
f0c13edf4b
4 changed files with 26 additions and 0 deletions
|
@ -273,6 +273,7 @@ class ExtensionForm(FormRevMixin, ModelForm):
|
|||
self.fields['origin'].label = _("A record origin")
|
||||
self.fields['origin_v6'].label = _("AAAA record origin")
|
||||
self.fields['soa'].label = _("SOA record to use")
|
||||
self.fields['dnssec'].label = _("Sign with DNSSEC")
|
||||
|
||||
|
||||
class DelExtensionForm(FormRevMixin, Form):
|
||||
|
|
20
machines/migrations/0097_extension_dnssec.py
Normal file
20
machines/migrations/0097_extension_dnssec.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2018-12-24 14:00
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('machines', '0096_auto_20181013_1417'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='extension',
|
||||
name='dnssec',
|
||||
field=models.BooleanField(default=False, help_text='Should the zone be signed with DNSSEC'),
|
||||
),
|
||||
]
|
|
@ -696,6 +696,10 @@ class Extension(RevMixin, AclMixin, models.Model):
|
|||
'SOA',
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
dnssec = models.BooleanField(
|
||||
default=False,
|
||||
help_text=_("Should the zone be signed with DNSSEC")
|
||||
)
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
|
|
|
@ -56,6 +56,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
{% acl_end %}
|
||||
{% history_button extension %}
|
||||
</td>
|
||||
<td>{{ extension.dnssec|tick }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue