Merge branch 'develop' into feature/restapi
This commit is contained in:
@@ -996,7 +996,7 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
|
|
||||||
plot = Figure(x_axis_type=x_axis_type,y_axis_type=y_axis_type,
|
plot = Figure(x_axis_type=x_axis_type,y_axis_type=y_axis_type,
|
||||||
tools=TOOLS,
|
tools=TOOLS,
|
||||||
toolbar_sticky=False,
|
toolbar_sticky=False
|
||||||
)
|
)
|
||||||
|
|
||||||
x1means = Span(location=x1mean,dimension='height',line_color='green',
|
x1means = Span(location=x1mean,dimension='height',line_color='green',
|
||||||
@@ -1235,8 +1235,6 @@ def interactive_flex_chart2(id=0,promember=0,
|
|||||||
js_resources = INLINE.render_js()
|
js_resources = INLINE.render_js()
|
||||||
css_resources = INLINE.render_css()
|
css_resources = INLINE.render_css()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return [script,div,js_resources,css_resources]
|
return [script,div,js_resources,css_resources]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2687,14 +2687,14 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
workstrokesonly = False
|
workstrokesonly = False
|
||||||
|
|
||||||
# create interactive plot
|
# create interactive plot
|
||||||
res = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
|
script,div,js_resources,css_resources = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
|
||||||
yparam2=yparam2,
|
yparam2=yparam2,
|
||||||
promember=promember,plottype=plottype,
|
promember=promember,plottype=plottype,
|
||||||
workstrokesonly=workstrokesonly)
|
workstrokesonly=workstrokesonly)
|
||||||
script = res[0]
|
# script = res[0]
|
||||||
div = res[1]
|
# div = res[1]
|
||||||
js_resources = res[2]
|
# js_resources = res[2]
|
||||||
css_resources = res[3]
|
# css_resources = res[3]
|
||||||
|
|
||||||
if row.workouttype == 'water':
|
if row.workouttype == 'water':
|
||||||
return render(request,
|
return render(request,
|
||||||
@@ -4560,13 +4560,9 @@ def rower_favoritecharts_view(request):
|
|||||||
FavoriteChart.objects.filter(user=r).delete()
|
FavoriteChart.objects.filter(user=r).delete()
|
||||||
FavoriteChart.objects.bulk_create(new_instances)
|
FavoriteChart.objects.bulk_create(new_instances)
|
||||||
successmessage = "You have updated your favorites"
|
successmessage = "You have updated your favorites"
|
||||||
FavoriteChartFormSet=formset_factory(FavoriteForm,formset=BaseFavoriteFormSet)
|
|
||||||
print new_instances
|
|
||||||
print "aap",len(new_instances)
|
|
||||||
if len(new_instances)==0:
|
if len(new_instances)==0:
|
||||||
FavoriteChartFormSet=formset_factory(FavoriteForm,formset=BaseFavoriteFormSet,extra=1)
|
FavoriteChartFormSet=formset_factory(FavoriteForm,formset=BaseFavoriteFormSet,extra=1)
|
||||||
|
favorites_formset = FavoriteChartFormSet()
|
||||||
favorites_formset = FavoriteChartFormSet()
|
|
||||||
except IntegrityError:
|
except IntegrityError:
|
||||||
message = "something went wrong"
|
message = "something went wrong"
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ AUTHENTICATION_BACKENDS = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = [
|
MIDDLEWARE_CLASSES = [
|
||||||
|
'django.middleware.gzip.GZipMiddleware',
|
||||||
|
'htmlmin.middleware.HtmlMinifyMiddleware',
|
||||||
|
'htmlmin.middleware.MarkRequestMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
|||||||
Reference in New Issue
Block a user