#36709: Bug Report: `manage.py check` Fails to Detect `@staticmethod` Override
for
`is_authenticated` (auth.C010) and 'is_anonymous' (auth.C009)
------------------------------+--------------------------------------
Reporter: stan shaw | Owner: Harsh Jain
Type: Bug | Status: assigned
Component: contrib.auth | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Harsh Jain):
* has_patch: 0 => 1
* owner: (none) => Harsh Jain
* stage: Unreviewed => Accepted
* status: new => assigned
Comment:
Thanks for reporting this bug, you’re correct; that appears to be the
case. I’ve raised a pull request to fix the issue by applying the
suggested patch and adding a test to detect `@staticmethod` overrides of
`is_authenticated` and `is_anonymous`.
[https://github.com/django/django/pull/20061 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36709#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019a557ec3e6-a21f3b53-d982-4952-9ddf-b173e62c35b1-000000%40eu-central-1.amazonses.com.