From 0afdadeadcbc054014e9f497816f7928b2033797 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 12 Apr 2021 16:05:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Create=20visibility=20field=20in?= =?UTF-8?q?=20the=20database?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sophon/core/models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sophon/core/models.py b/sophon/core/models.py index 45b5e01..5075a20 100644 --- a/sophon/core/models.py +++ b/sophon/core/models.py @@ -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.",