1
Fork 0
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:
Steffo 2021-04-12 16:12:39 +02:00 committed by Stefano Pigozzi
parent 0afdadeadc
commit ed310f72ab

View file

@ -1,5 +1,6 @@
from django.db import models
from django.core import validators
from django.contrib.auth.models import User
import pandas
import pandasdmx
import pandasdmx.message
@ -333,6 +334,19 @@ class Project(models.Model):
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(
DataFlow,
help_text="The DataFlows used in this project.",