--
Ticket URL: <https://code.djangoproject.com/ticket/25169>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:1>
Comment (by timgraham):
That makes some sense, however, backwards compatibility could be an issue.
What about stacking `@login_required` before `@permission_required` if you
need this behavior?
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:2>
Comment (by aithusa):
That's what I did eventually after some googling. If this is not possible
to add/fix, would it be possible to putting this on the documentation as I
expect quite a few people would like to have such behaviour. Cheers.
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:3>
* component: Uncategorized => Documentation
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Sure, care to offer a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:4>
* status: new => assigned
* owner: nobody => bxm156
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:5>
* has_patch: 0 => 1
Comment:
I found the wording of the description rather confusing. I think I
understand what the original author was commenting on, and I created a
pull request based on my understanding. If I understood the ticket wrong,
please let me know.
Pull Request:
https://github.com/django/django/pull/5522
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9788625277b85596302bbf2c39cf829b7a766a4f" 9788625]:
{{{
#!CommitTicketReference repository=""
revision="9788625277b85596302bbf2c39cf829b7a766a4f"
Fixed #25169 -- Documented stacking of permission_required and
login_required.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"16c1075d335c4dbe84b0ef634b95b8a2eca1691d" 16c1075]:
{{{
#!CommitTicketReference repository=""
revision="16c1075d335c4dbe84b0ef634b95b8a2eca1691d"
[1.8.x] Fixed #25169 -- Documented stacking of permission_required and
login_required.
Backport of 9788625277b85596302bbf2c39cf829b7a766a4f from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"8e23527075b15704451e3d51bf776e3fda8b09e7" 8e23527]:
{{{
#!CommitTicketReference repository=""
revision="8e23527075b15704451e3d51bf776e3fda8b09e7"
[1.9.x] Fixed #25169 -- Documented stacking of permission_required and
login_required.
Backport of 9788625277b85596302bbf2c39cf829b7a766a4f from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25169#comment:9>