fix
This commit is contained in:
@@ -2535,7 +2535,7 @@ def rower_view_instantplan(request,id='',userid=0):
|
|||||||
try:
|
try:
|
||||||
targetid = request.POST['target']
|
targetid = request.POST['target']
|
||||||
if targetid != '':
|
if targetid != '':
|
||||||
target = TrainingTarget.ojects.get(id=int(targetid))
|
target = TrainingTarget.objects.get(id=int(targetid))
|
||||||
else:
|
else:
|
||||||
target = None
|
target = None
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@@ -2685,7 +2685,7 @@ def rower_select_instantplan(request,id=0):
|
|||||||
themanager = getrower(request.user)
|
themanager = getrower(request.user)
|
||||||
|
|
||||||
# get and present available plans
|
# get and present available plans
|
||||||
ips = InstantPlan.objects.all().order_by("sessionsperweek","hoursperweek","duration")
|
ips = InstantPlan.objects.all().order_by("sessionsperweek","hoursperweek","duration","id")
|
||||||
|
|
||||||
breadcrumbs = [
|
breadcrumbs = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user