Skip to content

Commit

Permalink
Restored broken v4-upgrade-redirect route for legacy upgrades #1841
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jul 21, 2023
1 parent 3afd57e commit 0311471
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ v5.11.0 - August 2023

- ``Fixed`` Bugfix for Archive which was causing the electricity returned meter positions to be displayed at all times.
- ``Fixed`` [`#1767 <https://github.com/dsmrreader/dsmr-reader/issues/1767>`_] Slightly alter debug info for unsupported database engines.
- ``Fixed`` [`#1841 <https://github.com/dsmrreader/dsmr-reader/issues/1841>`_] Restored broken `v4-upgrade-redirect` route for legacy upgrades.

- ``Changed`` [`#1827 <https://github.com/dsmrreader/dsmr-reader/issues/1827>`_] Update to python 3.11.2 - by ``goegol``
- ``Changed`` [`#1861 <https://github.com/dsmrreader/dsmr-reader/issues/1861>`_] Added undocumented env var for low level datalogger usage
Expand Down
4 changes: 4 additions & 0 deletions dsmr_frontend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
FeedbackRedirect,
DonationsRedirect,
XhrHeader,
V4UpgradeRedirect,
V5UpgradeRedirect,
StatusRedirectView,
)
Expand Down Expand Up @@ -99,6 +100,9 @@
path("docs-redirect", DocsRedirect.as_view(), name="docs-redirect"),
path("feedback-redirect", FeedbackRedirect.as_view(), name="feedback-redirect"),
path("donations-redirect", DonationsRedirect.as_view(), name="donations-redirect"),
path(
"v4-upgrade-redirect", V4UpgradeRedirect.as_view(), name="v4-upgrade-redirect"
),
path(
"v5-upgrade-redirect", V5UpgradeRedirect.as_view(), name="v5-upgrade-redirect"
),
Expand Down
5 changes: 5 additions & 0 deletions dsmr_frontend/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class DonationsRedirect(ReadTheDocsRedirectView):
subpage = "how-to/donate/thanks.html"


class V4UpgradeRedirect(ReadTheDocsRedirectView):
subpage = "tutorial/upgrading/to-v4.html"
branch = "v4"


class V5UpgradeRedirect(ReadTheDocsRedirectView):
subpage = "tutorial/upgrading/to-v5.html"
branch = "v5"

0 comments on commit 0311471

Please sign in to comment.