Skip to content

unify username lookup#2097

Merged
alastair merged 3 commits intomasterfrom
username-lookup
May 1, 2026
Merged

unify username lookup#2097
alastair merged 3 commits intomasterfrom
username-lookup

Conversation

@alastair
Copy link
Copy Markdown
Member

@alastair alastair commented May 1, 2026

Issue(s)
This is preparation work for #1860

Description
Get things ready so that we can switch to fast username lookup

alastair added 3 commits May 1, 2026 08:38
add helper every place we check username__iexact
so that we can rewrite the lookup
In these methods we already have the user object from the
redirect_if_old_username decorator, so don't need to do
another slow lookup
Changes that we want to make to username lookup don't allow wildcard
lookups, so revert to exact
@alastair alastair force-pushed the username-lookup branch from a75bfa6 to 3b472b9 Compare May 1, 2026 06:38
@alastair alastair merged commit 3b472b9 into master May 1, 2026
2 checks passed
@alastair alastair deleted the username-lookup branch May 1, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant