Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-07-07 15:32:13 +02:00
parent 4b5d350d49
commit 30a3602774
3 changed files with 18 additions and 4 deletions

View File

@@ -1385,7 +1385,7 @@ def default_class(r,w,race):
adaptiveclass=adaptiveclass,
boattype=boattype,
).order_by(
"agemax","-agemin","boattype","sex","weightcategory",
"agemax","-agemin","boattype","sex","weightclass",
"referencespeed"
)
if standards.count()==0:
@@ -1394,7 +1394,7 @@ def default_class(r,w,race):
boattype=boattype
).order_by(
"agemax","-agemin","boattype","sex",
"weightcategory","referencespeed")
"weightclass","referencespeed")
if standards.count()==0:
standards = CourseStandard.objects.filter(
agemin__lt=age,agemax__gt=age