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):
|
||||
try:
|
||||
therower = Rower.objects.get(user=user)
|
||||
teams1 = therower.team.all()
|
||||
try:
|
||||
teams1 = therower.team.all()
|
||||
except AttributeError:
|
||||
teams1 = []
|
||||
|
||||
teams2 = Team.objects.filter(manager=user)
|
||||
teams = list(set(teams1).union(set(teams2)))
|
||||
except TypeError:
|
||||
|
||||
Reference in New Issue
Block a user