File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 44from typing import Optional
55
66import strawberry
7- from api .participants .types import Participant
8- from participants .models import Participant as ParticipantModel
97
108from 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 )
You can’t perform that action at this time.
0 commit comments