ability to change weight for single scullers
This commit is contained in:
@@ -13501,15 +13501,10 @@ def virtualevent_register_view(request,id=0):
|
|||||||
cd = form.cleaned_data
|
cd = form.cleaned_data
|
||||||
teamname = cd['teamname']
|
teamname = cd['teamname']
|
||||||
boattype = cd['boattype']
|
boattype = cd['boattype']
|
||||||
if not boattype == '1x':
|
|
||||||
weightcategory = cd['weightcategory']
|
weightcategory = cd['weightcategory']
|
||||||
age = cd['age']
|
age = cd['age']
|
||||||
else:
|
if boattype == '1x' and r.birthdate:
|
||||||
weightcategory = r.weightcategory
|
|
||||||
if r.birthdate:
|
|
||||||
age = calculate_age(r.birthdate)
|
age = calculate_age(r.birthdate)
|
||||||
else:
|
|
||||||
age = cd['age']
|
|
||||||
|
|
||||||
record = VirtualRaceResult(
|
record = VirtualRaceResult(
|
||||||
userid=r.id,
|
userid=r.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user