mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🚧 Create owner and collaborators fields
This commit is contained in:
parent
0afdadeadc
commit
ed310f72ab
1 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.core import validators
|
from django.core import validators
|
||||||
|
from django.contrib.auth.models import User
|
||||||
import pandas
|
import pandas
|
||||||
import pandasdmx
|
import pandasdmx
|
||||||
import pandasdmx.message
|
import pandasdmx.message
|
||||||
|
@ -333,6 +334,19 @@ class Project(models.Model):
|
||||||
default="INTERNAL",
|
default="INTERNAL",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
owner = models.ForeignKey(
|
||||||
|
User,
|
||||||
|
help_text="The user who owns the project, and has full access to it.",
|
||||||
|
on_delete=models.CASCADE,
|
||||||
|
)
|
||||||
|
|
||||||
|
collaborators = models.ManyToManyField(
|
||||||
|
User,
|
||||||
|
help_text="The users who can edit the project.",
|
||||||
|
related_name="collaborates_in",
|
||||||
|
blank=True,
|
||||||
|
)
|
||||||
|
|
||||||
flows = models.ManyToManyField(
|
flows = models.ManyToManyField(
|
||||||
DataFlow,
|
DataFlow,
|
||||||
help_text="The DataFlows used in this project.",
|
help_text="The DataFlows used in this project.",
|
||||||
|
|
Loading…
Reference in a new issue