Merge tag 'v8.19' into develop
not fixed
This commit is contained in:
@@ -834,7 +834,11 @@ def rdata(file,rower=rrower()):
|
|||||||
def get_my_teams(user):
|
def get_my_teams(user):
|
||||||
try:
|
try:
|
||||||
therower = Rower.objects.get(user=user)
|
therower = Rower.objects.get(user=user)
|
||||||
teams1 = therower.team.all()
|
try:
|
||||||
|
teams1 = therower.team.all()
|
||||||
|
except AttributeError:
|
||||||
|
teams1 = []
|
||||||
|
|
||||||
teams2 = Team.objects.filter(manager=user)
|
teams2 = Team.objects.filter(manager=user)
|
||||||
teams = list(set(teams1).union(set(teams2)))
|
teams = list(set(teams1).union(set(teams2)))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user