From d77fca3a2489d2a3f9c54953bdc95e25f0c581ab Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Wed, 6 Nov 2019 22:54:39 +0000 Subject: [PATCH] add check_fingerprint to component_suits view --- django_plotly_dash/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django_plotly_dash/views.py b/django_plotly_dash/views.py index 893ff04a..86539aa2 100644 --- a/django_plotly_dash/views.py +++ b/django_plotly_dash/views.py @@ -28,6 +28,7 @@ from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect +from dash.fingerprint import check_fingerprint from .models import DashApp from .util import get_initial_arguments, static_path @@ -124,7 +125,8 @@ def component_suites(request, resource=None, component=None, extra_element="", * if get_params and False: redone_url = static_path("dash/component/%s/%s%s?%s" %(component, extra_element, resource, get_params)) else: - redone_url = static_path("dash/component/%s/%s%s" %(component, extra_element, resource)) + resource, _fingerprint = check_fingerprint(resource) + redone_url = static_path("dash/component/%s/%s%s" % (component, extra_element, resource)) return HttpResponseRedirect(redirect_to=redone_url)