Skip to content

Commit 211821c

Browse files
committed
fix: 404 on resend confirmation
1 parent a737637 commit 211821c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bullet/bullet_admin/views/teams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_permission_venue(self):
221221

222222
@cached_property
223223
def team(self) -> Team:
224-
return get_object_or_404(Team, id=self.kwargs["pk"], is_waiting=True)
224+
return get_object_or_404(Team, id=self.kwargs["pk"], confirmed_at__isnull=True)
225225

226226
def post(self, request, *args, **kwargs):
227227
send_confirmation_email.delay(self.team.id)

0 commit comments

Comments
 (0)