Add multiple trees per DataGroup
I realized during the weekend that I have to change the strategy here.
Currently each DataGroup
represents one node
in the Tree and the edge
(relation) between child and parent DataGroup
is equipped with permissions. This is, however, inefficient to query. Ideally, one get's all groups with edit permissions with a single database request. But this is not possible as we cannot specify what `edge
Anyway, I will change it as such that each DataGroup
gets different nodes, one for each relation type ("edit", "view" or "list"). So the DataGroup
will not be a node anymore, but instead holds a ForeignKey
to multiple nodes in different trees.