Private
Public Access
1
0

fxed submission with teams

This commit is contained in:
Sander Roosendaal
2018-06-18 12:30:56 +02:00
parent 521aa945fd
commit 77e52ac9c1

View File

@@ -1641,12 +1641,23 @@ class VirtualRaceResult(models.Model):
u1 = rr.user.first_name,
u2 = rr.user.last_name,
)
return u'Entry for {n} for "{r}" in {c} {d}'.format(
n = name,
r = self.race,
d = self.boattype,
c = self.boatclass,
if self.teamname:
return u'Entry for {n} for "{r}" in {c} {d} with {t} ({s})'.format(
n = name,
r = self.race,
d = self.boattype,
c = self.boatclass,
t = self.teamname,
s = self.sex,
)
else:
return u'Entry for {n} for "{r}" in {c} {d} ({s})'.format(
n = name,
r = self.race,
d = self.boattype,
c = self.boatclass,
s = self.sex,
)
class CourseTestResult(models.Model):