Parent is now mandatory when creating a new BaseInstance class
This commit is contained in:
@@ -28,8 +28,8 @@ class VisNetworkState(DbObject):
|
||||
|
||||
|
||||
class VisNetwork(MultipleInstance):
|
||||
def __init__(self, session, _id=None, nodes=None, edges=None, options=None):
|
||||
super().__init__(session, Ids.VisNetwork, _id=_id)
|
||||
def __init__(self, parent, _id=None, nodes=None, edges=None, options=None):
|
||||
super().__init__(Ids.VisNetwork, parent, _id=_id)
|
||||
logger.debug(f"VisNetwork created with id: {self._id}")
|
||||
|
||||
self._state = VisNetworkState(self)
|
||||
|
||||
Reference in New Issue
Block a user