multiflex select form remembers options
This commit is contained in:
@@ -3354,6 +3354,16 @@ def user_multiflex_select(request,
|
||||
except KeyError:
|
||||
palette = 'monochrome_blue'
|
||||
|
||||
try:
|
||||
includereststrokes = request.session['includereststrokes']
|
||||
except KeyError:
|
||||
includereststrokes = False
|
||||
|
||||
try:
|
||||
ploterrorbars = request.session['ploterrorbars']
|
||||
except:
|
||||
ploterrobars = False
|
||||
|
||||
|
||||
if 'startdate' in request.session:
|
||||
startdate = iso8601.parse_date(request.session['startdate'])
|
||||
@@ -3407,7 +3417,9 @@ def user_multiflex_select(request,
|
||||
form.fields["workouts"].queryset = workouts
|
||||
|
||||
chartform = MultiFlexChoiceForm(initial={
|
||||
'palette':palette
|
||||
'palette':palette,
|
||||
'ploterrorbars':ploterrorbars,
|
||||
'includereststrokes':includereststrokes,
|
||||
})
|
||||
|
||||
messages.info(request,successmessage)
|
||||
|
||||
Reference in New Issue
Block a user