Private
Public Access
1
0

team tests initial

This commit is contained in:
Sander Roosendaal
2019-01-10 10:37:09 +01:00
parent 27e74c87e4
commit a2c68e79b2
5 changed files with 66 additions and 2 deletions

View File

@@ -187,6 +187,7 @@ def create_invite(team,manager,user=None,email=''):
if user:
try:
r2 = Rower.objects.get(user=user)
email = r2.user.email
except Rower.DoesNotExist:
return (0,'Rower does not exist')
if r2 in Rower.objects.filter(team=team):