Continuing record model
Some checks failed
pda-new unit tests / Run-unit-tests (push) Failing after 1m18s
Some checks failed
pda-new unit tests / Run-unit-tests (push) Failing after 1m18s
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user