mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-27 15:54:16 +00:00
Add record comment
This commit is contained in:
@@ -8,6 +8,7 @@ class DomainTemplateRecord(db.Model):
|
||||
type = db.Column(db.String(64))
|
||||
ttl = db.Column(db.Integer)
|
||||
data = db.Column(db.Text)
|
||||
comment = db.Column(db.Text)
|
||||
status = db.Column(db.Boolean)
|
||||
template_id = db.Column(db.Integer, db.ForeignKey('domain_template.id'))
|
||||
template = db.relationship('DomainTemplate', back_populates='records')
|
||||
@@ -21,12 +22,14 @@ class DomainTemplateRecord(db.Model):
|
||||
type=None,
|
||||
ttl=None,
|
||||
data=None,
|
||||
comment=None,
|
||||
status=None):
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.type = type
|
||||
self.ttl = ttl
|
||||
self.data = data
|
||||
self.comment = comment
|
||||
self.status = status
|
||||
|
||||
def apply(self):
|
||||
|
Reference in New Issue
Block a user