mirror of
https://github.com/Steffo99/sophon.git
synced 2025-01-08 23:09:47 +00:00
🚧 Create visibility field in the database
This commit is contained in:
parent
be1a2c0e03
commit
0a545a4336
1 changed files with 11 additions and 0 deletions
|
@ -322,6 +322,17 @@ class Project(models.Model):
|
||||||
blank=True,
|
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(
|
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