Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUPUT_USERNAME_REGEX does not allows dots #122

Open
marctc opened this issue Jul 4, 2017 · 0 comments
Open

PUPUT_USERNAME_REGEX does not allows dots #122

marctc opened this issue Jul 4, 2017 · 0 comments
Assignees
Labels

Comments

@marctc
Copy link
Collaborator

marctc commented Jul 4, 2017

Due this Wagtail issue (wagtail/wagtail#3653) filtering entries by author with usernames with dots is not possible. So you cannot write something like this PUPUT_USERNAME_REGEX = '[-\w\.]+'. A possible workaround is overwrite the wagtailcore/urls.py file and replace:

serve_pattern = r'^((?:[\w-]+/))$'
with
serve_pattern = r'^((?:[\w-]+/)|.*)$'

@marctc marctc added the bug label Jul 4, 2017
@marctc marctc changed the title PUPUT_USERNAME_REGEX does not accepts dots in the regex PUPUT_USERNAME_REGEX does not allows dots Jul 4, 2017
@marctc marctc removed the bug label May 2, 2018
@marctc marctc added the info label May 6, 2019
@bashu bashu self-assigned this Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants