add is_demo_user field to vOLT object
diff --git a/xos/cord/models.py b/xos/cord/models.py
index c491a54..07dbcec 100644
--- a/xos/cord/models.py
+++ b/xos/cord/models.py
@@ -68,7 +68,8 @@
KIND = "vOLT"
- default_attributes = {"vlan_id": None, }
+ default_attributes = {"vlan_id": None,
+ "is_demo_user": False }
def __init__(self, *args, **kwargs):
volt_services = VOLTService.get_service_objects().all()
@@ -129,6 +130,14 @@
self.cached_creator=None
self.set_attribute("creator_id", value)
+ @property
+ def is_demo_user(self):
+ return self.get_attribute("is_demo_user", self.default_attributes["is_demo_user"])
+
+ @is_demo_user.setter
+ def is_demo_user(self, value):
+ self.set_attribute("is_demo_user", value)
+
def manage_vcpe(self):
# Each VOLT object owns exactly one VCPE object