We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e975f commit 5261529Copy full SHA for 5261529
competition/models.py
@@ -203,7 +203,7 @@ def can_user_modify(self, user):
203
204
@classmethod
205
def can_user_create(cls, user: User, data: dict) -> bool:
206
- competition = Competition.objects.get(pk=data['competition'])
+ competition = Competition.objects.get(pk=data['competition'].id)
207
return competition.can_user_modify(user)
208
209
def can_user_participate(self, user):
0 commit comments