Skip to content

Commit

Permalink
Insert stub function for backwards compatibility (#320)
Browse files Browse the repository at this point in the history
* Insert stub function for backwards compatibility

* Add CHANGELOG and update version

Co-authored-by: Mark Gibbs <[email protected]>
  • Loading branch information
delsim and Mark Gibbs authored Feb 6, 2021
1 parent cddf575 commit b9b8712
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Change log for django-plotly-dash

All notable changes should be documented in this file.

## [1.6.1] - 2021-02-06

Added a stub for `use_dash_dispatch` for backwards compatibility.

[PR](https://github.com/GibbsConsulting/django-plotly-dash/pull/320)

Handle state management for wildcard arguments.

https://github.com/GibbsConsulting/django-plotly-dash/pull/316

Enable forwarding of extra arguments to DjangoDash constructor

https://github.com/GibbsConsulting/django-plotly-dash/pull/312

9 changes: 9 additions & 0 deletions django_plotly_dash/dash_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,15 @@ def __init__(self,

self._return_embedded = False

def use_dash_dispatch(self):
"""Return True if underlying dash dispatching should be used.
This stub is present to allow older code to work. Following PR #304
(see https://github.com/GibbsConsulting/django-plotly-dash/pull/304/files for
details) this function is no longer needed and therefore should always
return False"""
return False

def use_dash_layout(self):
'''
Indicate if the underlying dash layout can be used.
Expand Down
2 changes: 1 addition & 1 deletion django_plotly_dash/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
'''

__version__ = "1.6.0"
__version__ = "1.6.1"

0 comments on commit b9b8712

Please sign in to comment.