From 998fab80b527b143c79330564db6727553018154 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:22:54 +0530 Subject: [PATCH] feat: project preferences (#1652) --- apiserver/plane/db/models/project.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apiserver/plane/db/models/project.py b/apiserver/plane/db/models/project.py index be073e11e..637afdfa3 100644 --- a/apiserver/plane/db/models/project.py +++ b/apiserver/plane/db/models/project.py @@ -31,6 +31,13 @@ def get_default_props(): "showEmptyGroups": True, } +def get_default_preferences(): + return { + "pages": { + "block_display": True + } + } + class Project(BaseModel): NETWORK_CHOICES = ((0, "Secret"), (2, "Public")) @@ -147,6 +154,7 @@ class ProjectMember(ProjectBaseModel): role = models.PositiveSmallIntegerField(choices=ROLE_CHOICES, default=10) view_props = models.JSONField(default=get_default_props) default_props = models.JSONField(default=get_default_props) + preferences = models.JSONField(default=get_default_preferences) class Meta: unique_together = ["project", "member"]