Skip to content

Commit 86e7400

Browse files
tiagoslgGibbsConsulting
authored andcommitted
add check_fingerprint to component_suits view (#187)
1 parent ec738c9 commit 86e7400

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_plotly_dash/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
from django.http import HttpResponse, HttpResponseRedirect
3030
from django.shortcuts import redirect
31+
from dash.fingerprint import check_fingerprint
3132

3233
from .models import DashApp
3334
from .util import get_initial_arguments, static_path
@@ -124,7 +125,8 @@ def component_suites(request, resource=None, component=None, extra_element="", *
124125
if get_params and False:
125126
redone_url = static_path("dash/component/%s/%s%s?%s" %(component, extra_element, resource, get_params))
126127
else:
127-
redone_url = static_path("dash/component/%s/%s%s" %(component, extra_element, resource))
128+
resource, _fingerprint = check_fingerprint(resource)
129+
redone_url = static_path("dash/component/%s/%s%s" % (component, extra_element, resource))
128130

129131
return HttpResponseRedirect(redirect_to=redone_url)
130132

0 commit comments

Comments
 (0)