[Django] #33921: Removed LogoutView.get_next_page without any notice

67 views
Skip to first unread message

Django

unread,
Aug 12, 2022, 2:40:28 AM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------------------+------------------------
Reporter: Serafeim Papastefanos | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------------+------------------------
Hello friends, I was usign the `LogoutView.get_next_page` method in a
django 4.0 project and when I updated to django 4.1 the method was
missing!

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.

Django

unread,
Aug 12, 2022, 4:12:11 AM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: nobody
Papastefanos |
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* 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>

Django

unread,
Aug 12, 2022, 4:19:12 AM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: nobody
Papastefanos |
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Aug 12, 2022, 4:37:59 AM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: nobody
Papastefanos |
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Aug 12, 2022, 6:16:13 AM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: nobody
Papastefanos |
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Aug 12, 2022, 4:35:42 PM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: mtabbasi
Papastefanos |
Type: | Status: assigned

Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* 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>

Django

unread,
Aug 12, 2022, 4:38:42 PM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: mtabbasi
Papastefanos |
Type: | Status: closed

Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* 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>

Django

unread,
Aug 12, 2022, 4:39:55 PM8/12/22
to django-...@googlegroups.com
#33921: Removed LogoutView.get_next_page without any notice
-------------------------------------+-------------------------------------
Reporter: Serafeim | Owner: mtabbasi
Papastefanos |
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 4.1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages