Hey there!
I’m designing a Deals platform, and i came up with the following task.
We’re going to have a proposal, and that proposal will contain many scope.
The scopes will be the tree, and will look someting like:
Users
-> Create
-> Send an email everytime a user is created
-> Read
I lookup to django-treebeard. But i could not found a way of implementing what i’m trying to achieve. The doubt that i have is, should my model look like this:
from django.db import models
from treebeard.mp_path import MP_Node
class Proposal(models.Model):
# fields
class Scope(MP_Node):
proposal = models.ForeignKey(to=Proposal, ...)
task = models.CharField(max_length=123)
Or Look like this:
from django.db import models
from treebeard.mp_path import MP_Node
class Proposal(MP_Node):
# Other Fields
task = models.CharField(max_length=123)
PS: I will be editing, creating these models only in the admin.