Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

CaseInsensitiveModelBackend error in caseinsensitiveauth.py #3

Open
rscottco opened this issue Jul 15, 2013 · 0 comments
Open

CaseInsensitiveModelBackend error in caseinsensitiveauth.py #3

rscottco opened this issue Jul 15, 2013 · 0 comments

Comments

@rscottco
Copy link

Hello again,

Line 7 of calloway/apps/django_ext/caseinsensitiveauth.py reads:

CHARS = getattr(settings, 'ALLOWED_USERNAME_CHARS', \''.join(_alphanum.keys()) + '-_')

're._alphanum' is a frozenset, not a dictionary/map, thus should drop the '.keys()" and read:

CHARS = getattr(settings, 'ALLOWED_USERNAME_CHARS', ''.join(_alphanum) + '-_')

Such a minor issue to fix it is so not worth forking.

Kind regards,

Scott SA

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant