1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

🚧 Create visibility field in the database

This commit is contained in:
Steffo 2021-04-12 16:05:48 +02:00 committed by Stefano Pigozzi
parent 6188ef9330
commit 0afdadeadc

View file

@ -322,6 +322,17 @@ class Project(models.Model):
blank=True,
)
visibility = models.CharField(
"Visibility",
help_text="A setting specifying who can view the project.",
choices=[
("PUBLIC", "🌍 Public"),
("INTERNAL", "🏭 Internal"),
("PRIVATE", "🔒 Private"),
],
default="INTERNAL",
)
flows = models.ManyToManyField(
DataFlow,
help_text="The DataFlows used in this project.",