Please see here the code for 4.0:
https://github.com/django/django/blob/4.0.7/django/contrib/auth/views.py#L138
and 4.1:
https://github.com/django/django/blob/4.1/django/contrib/auth/views.py#L126
You'll see that the get_next_page has completely disappeared. No mention
of this on the release notes:
https://docs.djangoproject.com/en/4.1/releases/4.1/
Please either return the get_next_page method or mention that it is
removed in the release notes so we'll know what to use instead.
Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/33921>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Bug => Cleanup/optimization
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
`LogoutView.get_next_page()` was renamed to `get_success_url()` in
5b8699e723d9daf373fff46c6859fed2b780a9bd . It's a private API so there was
no need for a deprecation period. A short release note won't hurt, e.g.
{{{#!diff
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index cf0107cfbe..11268df298 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -712,6 +712,9 @@ Miscellaneous
``"django/forms/formsets/default.html"`` templates which are a proxy to
the
table-based templates are deprecated. Use the specific template
instead.
+* The undocumented ``LogoutView.get_next_page()`` method is renamed to
+ ``get_success_url()``.
+
Features removed in 4.1
=======================
}}}
Would you like to prepare a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:1>
Comment (by Serafeim Papastefanos):
Yes a small notice in the release notes will definitely be very helpful! I
can't prepare a patch right now because I'm going for a vacation :)
Please notice that the `get_net_page` method was visible in the CBV
inspector site
(https://ccbv.co.uk/projects/Django/4.0/django.contrib.auth.views/LogoutView/#get_next_page)
; I understand that it may be considered private in the django docs but
CBV inspector is the defacto documentation for CBVs, so removing something
that exists there will break the code of a lot of people.
Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:2>
Comment (by Mariusz Felisiak):
Replying to [comment:2 Serafeim Papastefanos]:
> Yes a small notice in the release notes will definitely be very helpful!
I can't prepare a patch right now because I'm going for a vacation :)
>
> Please notice that the `get_net_page` method was visible in the CBV
inspector site
(https://ccbv.co.uk/projects/Django/4.0/django.contrib.auth.views/LogoutView/#get_next_page)
; I understand that it may be considered private in the django docs but
CBV inspector is the defacto documentation for CBVs, so removing something
that exists there will break the code of a lot of people.
`ccbv.co.uk` is not an official Django docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:3>
Comment (by Serafeim Papastefanos):
Yes I'm aware of that, please notice I mentioned that the CBV inspector is
''the de facto documentation for CBVs'' (not the de jure, see here
https://onlinelaw.wustl.edu/blog/legal-english-de-factode-
jure/#:~:text=De%20facto%20means%20a%20state,i.e.%20that%20is%20officially%20sanctioned).
Thank you and kind regards,
Serafeim
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:4>
* owner: nobody => mtabbasi
* status: new => assigned
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/15955 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e30d6678421b7573a1995f61521f14348c9b2a17" e30d6678]:
{{{
#!CommitTicketReference repository=""
revision="e30d6678421b7573a1995f61521f14348c9b2a17"
Fixed #33921 -- Added release note for
5b8699e723d9daf373fff46c6859fed2b780a9bd.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"c520a5d06ef17da9e2175be6aa995ff1761ce7f8" c520a5d]:
{{{
#!CommitTicketReference repository=""
revision="c520a5d06ef17da9e2175be6aa995ff1761ce7f8"
[4.1.x] Fixed #33921 -- Added release note for
5b8699e723d9daf373fff46c6859fed2b780a9bd.
Backport of e30d6678421b7573a1995f61521f14348c9b2a17 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33921#comment:7>