From b9b87121b158d22f93b83894ae149b2e069a2ca6 Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Sat, 6 Feb 2021 07:08:06 -0800 Subject: [PATCH] Insert stub function for backwards compatibility (#320) * Insert stub function for backwards compatibility * Add CHANGELOG and update version Co-authored-by: Mark Gibbs --- CHANGELOG.md | 18 ++++++++++++++++++ django_plotly_dash/dash_wrapper.py | 9 +++++++++ django_plotly_dash/version.py | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..862e3695 --- /dev/null +++ b/CHANGELOG.md @@ -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 + diff --git a/django_plotly_dash/dash_wrapper.py b/django_plotly_dash/dash_wrapper.py index fd59aad9..ff0d9793 100644 --- a/django_plotly_dash/dash_wrapper.py +++ b/django_plotly_dash/dash_wrapper.py @@ -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. diff --git a/django_plotly_dash/version.py b/django_plotly_dash/version.py index 945e00e0..6ff38c3a 100644 --- a/django_plotly_dash/version.py +++ b/django_plotly_dash/version.py @@ -23,4 +23,4 @@ ''' -__version__ = "1.6.0" +__version__ = "1.6.1"