Skip to content

Commit 653197a

Browse files
committed
remove participant from grant
1 parent c9e93b1 commit 653197a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

backend/api/grants/types.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from typing import Optional
55

66
import strawberry
7-
from api.participants.types import Participant
8-
from participants.models import Participant as ParticipantModel
97

108
from grants.models import Grant as GrantModel
119

@@ -36,15 +34,8 @@ class Grant:
3634
travelling_from: Optional[str]
3735
applicant_reply_deadline: Optional[datetime]
3836

39-
participant: Participant
40-
4137
@classmethod
4238
def from_model(cls, grant: GrantModel) -> Grant:
43-
participant = ParticipantModel.objects.filter(
44-
user_id=grant.user_id,
45-
conference=grant.conference,
46-
).first()
47-
4839
return cls(
4940
id=grant.id,
5041
status=Status(grant.status),
@@ -64,5 +55,4 @@ def from_model(cls, grant: GrantModel) -> Grant:
6455
notes=grant.notes,
6556
travelling_from=grant.travelling_from,
6657
applicant_reply_deadline=grant.applicant_reply_deadline,
67-
participant=Participant.from_model(participant),
6858
)

0 commit comments

Comments
 (0)