diff --git a/flaskapp.py b/flaskapp.py index 98640ed..bf1d6e6 100755 --- a/flaskapp.py +++ b/flaskapp.py @@ -52,6 +52,10 @@ class NetworkView(object): order = None replacement = None text = None + zone_format = None + grid_primary = None + grid_secondaries = None + ns_group = None def __init__(self, uid=None, isdefault=False, name=None, viewtype='network', network=None, comment=None): # `ZG5zLm5ldHdvcmskMS4wLjAuMC8yNC8w` == `dns.network$1.0.0.0/24/0` @@ -222,7 +226,11 @@ def to_dict(self, fields=[]): 'weight': self.weight, 'order': self.order, 'replacement': self.replacement, - 'text': self.text + 'text': self.text, + 'zone_format': self.zone_format, + 'grid_primary': self.grid_primary, + 'grid_secondaries': self.grid_secondaries, + 'ns_group': self.ns_group } if fields: for x in fields: