Skip to content

Commit

Permalink
Handle case of missing dash.fingerprint module (#192)
Browse files Browse the repository at this point in the history
* Add contributor

* Handle missing module in older dash versions
  • Loading branch information
delsim authored and GibbsConsulting committed Nov 16, 2019
1 parent 86e7400 commit c9a0242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ Thanks to the following people:
[dwinston](https://github.com/dwinston)

[gianlucasalvato](https://github.com/gianlucasalvato)

[tiagoslg](https://https://github.com/tiagoslg)
9 changes: 8 additions & 1 deletion django_plotly_dash/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@

from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import redirect
from dash.fingerprint import check_fingerprint

try:
from dash.fingerprint import check_fingerprint
except:
# check_fingerprint not available, fake it
def check_fingerprint(resource):
return resource, None


from .models import DashApp
from .util import get_initial_arguments, static_path
Expand Down

0 comments on commit c9a0242

Please sign in to comment.