From 23c6a1d22d69948148dd3e7b16ad81f287b80bac Mon Sep 17 00:00:00 2001 From: sm4640 Date: Fri, 2 May 2025 22:09:40 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fix:=20[#41]=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=EC=A0=9D=ED=8A=B8=20=EC=B4=88=EB=8C=80=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=EC=97=90=20=EC=95=8C=EB=A6=BC=20=EC=97=B0?= =?UTF-8?q?=EA=B4=80=EA=B4=80=EA=B3=84=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/models.py b/projects/models.py index 88ed65d..d034525 100644 --- a/projects/models.py +++ b/projects/models.py @@ -6,6 +6,7 @@ from common.models.choiceModels import InvitationStatus from django.contrib.postgres.fields import ArrayField from django.conf import settings +from notifications.models import Notification from users.models import User @@ -35,3 +36,4 @@ class ProjectInvitation(BaseModel): to_user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='received_invitations') project = models.ForeignKey(Project, on_delete=models.CASCADE) status = models.CharField(max_length=10, choices=InvitationStatus.choices) + notification = models.OneToOneField(Notification, on_delete=models.CASCADE, related_name='project_invitation', null=True, blank=True) \ No newline at end of file