Repository navigation
Bump to 2.35.5: explain each django-axes admin page - #1467
Merged
Merged
Conversation
Access attempts, Access logs and Access failures had no description, and their names don't say what they record. These pages get read during a lockout, so each now opens with a short explanation: what the rows are, how to unlock someone, why the IP is always the proxy's, and why unknown usernames appear as hashes. One template, admin/axes/change_list.html: the admin looks for an app-level changelist template before its default and axes ships none, so no ModelAdmin is re-registered. Styled with the admin's custom properties so it follows the dark-mode toggle. Tests check each page shows only its own text and pin the numbers the text hard-codes (10, 30 min, 1,000). Part of #1460. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes for #1467, checked against django-axes 9.0.0: - Access failures: attempts refused during a lockout are never logged, so it is not "every wrong password". - Access attempts: expired rows linger (still "Locked Out") until the next sign-in; unlocking means deleting every row for the username (rows are per username+IP+user agent), then confirming. Note the "(unknown)" hashed usernames here too. - Access logs: the recorded IP is the server's internal address. - The numbers test now asserts the rendered text against settings instead of pinning settings to exact values. - Shorter version description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Access attempts: a lockout sums Failed Logins across a username's rows, so no single row may say "Locked Out"; expired rows go the next time anyone signs in. - Access failures: a burst may also be an owner who forgot the password. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1460. Follow-up to #1466 (admin login throttle), found while testing 2.35.4 on -test.
Why
Access attempts, Access logs and Access failures (Administration, superuser-only) had no description, and their names don't say what they record. These pages get read during a lockout, so each now opens with a short explanation.
What
website/templates/admin/axes/change_list.html: one template for all three pages. The admin looks foradmin/<app_label>/change_list.htmlbefore its default and axes ships no templates, so no ModelAdmin is re-registered. It switches onopts.model_name:test_login_throttle.py): each page shows only its own text; the numbers the text hard-codes (10, 30 min, 1,000) are pinned against settings.Testing
🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5