Skip to content

Commit

Permalink
add check_fingerprint to component_suits view (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoslg authored and GibbsConsulting committed Nov 16, 2019
1 parent ec738c9 commit 86e7400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_plotly_dash/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 86e7400

Please sign in to comment.