fix
This commit is contained in:
@@ -2535,7 +2535,7 @@ def rower_view_instantplan(request,id='',userid=0):
|
||||
try:
|
||||
targetid = request.POST['target']
|
||||
if targetid != '':
|
||||
target = TrainingTarget.ojects.get(id=int(targetid))
|
||||
target = TrainingTarget.objects.get(id=int(targetid))
|
||||
else:
|
||||
target = None
|
||||
except KeyError:
|
||||
@@ -2685,7 +2685,7 @@ def rower_select_instantplan(request,id=0):
|
||||
themanager = getrower(request.user)
|
||||
|
||||
# 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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user