Skip to content

Commit 5261529

Browse files
Fixed event create (#446)
1 parent 67e975f commit 5261529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

competition/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def can_user_modify(self, user):
203203

204204
@classmethod
205205
def can_user_create(cls, user: User, data: dict) -> bool:
206-
competition = Competition.objects.get(pk=data['competition'])
206+
competition = Competition.objects.get(pk=data['competition'].id)
207207
return competition.can_user_modify(user)
208208

209209
def can_user_participate(self, user):

0 commit comments

Comments
 (0)