[Django] #28216: Add next_page to LoginView

24 views
Skip to first unread message

Django

unread,
May 17, 2017, 10:09:35 AM5/17/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
----------------------------------------+--------------------------------
Reporter: ThinkChaos | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Keywords: auth,LoginView
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+--------------------------------
`LogoutView` has a `next_page` attribute used to override
`settings.LOGOUT_REDIRECT_URL`.
It would be nice if `LoginView` had the same mechanism.

--
Ticket URL: <https://code.djangoproject.com/ticket/28216>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 17, 2017, 10:31:42 AM5/17/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------

Reporter: ThinkChaos | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:

Keywords: auth,LoginView | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------

Comment (by Tim Graham):

Did you consider overriding the `get_success_url()` method? Perhaps that
method could be documented.

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:1>

Django

unread,
May 17, 2017, 4:02:44 PM5/17/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------

Reporter: ThinkChaos | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:

Keywords: auth,LoginView | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------

Comment (by ThinkChaos):

Yes I have, the issue with that is when `redirect_authenticated_user =
True`, `dispatch` also has redirect logic.
No I don't. It's mostly for symmetry with `LogoutView` so that I have
redirects in the same view file, and not in the settings.

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:2>

Django

unread,
May 31, 2017, 10:26:45 AM5/31/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+------------------------------------

Reporter: ThinkChaos | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted

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

* stage: Unreviewed => Accepted


Comment:

I guess we could see what a patch looks like.

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:3>

Django

unread,
Jun 11, 2017, 11:18:36 AM6/11/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by ThinkChaos):

* status: new => assigned
* owner: nobody => ThinkChaos


--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:4>

Django

unread,
Jun 11, 2017, 11:40:25 AM6/11/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------

Comment (by ThinkChaos):

[https://github.com/django/django/pull/8630 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:5>

Django

unread,
Jun 11, 2017, 4:41:08 PM6/11/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mads Jensen):

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:6>

Django

unread,
Jul 26, 2017, 1:35:44 PM7/26/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by ThinkChaos):

* needs_tests: 1 => 0


Comment:

I just pushed tests.

Sorry it took so long, I didn't find the tests for LogoutView when I first
checked.

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:7>

Django

unread,
Sep 5, 2017, 9:04:59 PM9/5/17
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1
* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:8>

Django

unread,
Feb 8, 2021, 6:16:42 AM2/8/21
to django-...@googlegroups.com
#28216: Add next_page to LoginView
--------------------------------+--------------------------------------
Reporter: ThinkChaos | Owner: ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11

Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1

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

* needs_better_patch: 1 => 0
* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:9>

Django

unread,
Feb 8, 2021, 2:21:23 PM2/8/21
to django-...@googlegroups.com
#28216: Add next_page to LoginView
-------------------------------------+-------------------------------------

Reporter: ThinkChaos | Owner:
| ThinkChaos
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: auth,LoginView | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

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

* needs_docs: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:10>

Django

unread,
Feb 8, 2021, 4:40:21 PM2/8/21
to django-...@googlegroups.com
#28216: Add next_page to LoginView
-------------------------------------+-------------------------------------
Reporter: ThinkChaos | Owner:
| ThinkChaos
Type: New feature | Status: closed
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution: fixed

Keywords: auth,LoginView | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"b99d6c9cbc8eecf480892599201eef0d14b20d71" b99d6c9c]:
{{{
#!CommitTicketReference repository=""
revision="b99d6c9cbc8eecf480892599201eef0d14b20d71"
Fixed #28216 -- Added next_page/get_default_redirect_url() to LoginView.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28216#comment:11>

Reply all
Reply to author
Forward
0 new messages