* needs_docs: 0 => 1
Comment:
Documentation isn't correct - this isn't a method on the `User` object,
but on rather on `ModelBackend` which is documented at the bottom of
`docs/ref/contrib/auth.txt`, although none of the methods for the backend
are documented so presumably if we documented this one we'd want to
document the rest. This ticket also has "needs tests" set, and while I
imagine we could test the ability to override the method in a custom
backend, I'm not convinced it's necessary as it doesn't look like the rest
of the backend is tested in such a way.
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by jorgecarleitao):
timo is right. I added a pull request,
https://github.com/django/django/pull/2127, that fixes the docs of
ModelBackend and apply the patch.
I didn't added a test case because, like timo argued, the backend is not
tested anyway. I will fill a ticket reporting this.
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:13>
* cc: jorgecarleitao (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:14>
* status: new => assigned
* owner: => jorgecarleitao
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:15>
* needs_docs: 1 => 0
* needs_tests: 1 => 0
* needs_better_patch: 0 => 1
Comment:
Please uncheck "Patch needs improvement" when you update the PR, thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:16>
* needs_better_patch: 1 => 0
Comment:
See
https://github.com/jorgecarleitao/django/commit/ac217515b5290b6bab8a7a78d38bf309e063b3f6
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:17>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"cc35bd461d35da2b03c0a1a8ff92123d716db9a9"]:
{{{
#!CommitTicketReference repository=""
revision="cc35bd461d35da2b03c0a1a8ff92123d716db9a9"
Fixed #7599 -- Added get_user_permissions to ModelBackend.
Thanks to @gdub for the report and intial patch and
@charettes and @timgraham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/7599#comment:18>