Continuing record model

This commit is contained in:
2025-10-29 09:38:47 +01:00
parent 5e5fe12b5c
commit 9e06c21b0d

View File

@@ -139,6 +139,7 @@ class PDNSDomain(models.Model):
context = models.ForeignKey(PDNSContext,
verbose_name=_('Context'),
related_name='domains',
on_delete=models.CASCADE,
)
@@ -185,4 +186,19 @@ class PDNSResourceRecord(models.Model):
related_name='records'
)
record_type = models.CharField(verbose_name='Type')
"""
TODO: Will need to do some monkeying around with the field to
handle the domain name.
"""
name = models.Charfield(verbose_name=_('Name'),
validators=[])
"""
See earlier commend on domain_type
"""
record_type = models.CharField(verbose_name=_('Type'))
ttl = models.PositiveIntegerField(verbose_name = 'TTL',
default=86400)