From c79f584371e8648e625b76e0b2462f66768731c9 Mon Sep 17 00:00:00 2001 From: Frantisek Holop Date: Wed, 13 Jul 2022 11:44:39 +0200 Subject: [PATCH] 30 characters user names is an outdated requirement (#8848) django does not have this limitation anymore. --- CHANGELOG.txt | 1 + docs/releases/4.0.md | 1 + wagtail/users/forms.py | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ddf3947488..cca665b4f3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -96,6 +96,7 @@ Changelog * Fix: Make progress bars’ progress visible in forced colors mode (Anuja Verma) * Fix: Make checkboxes visible in forced colors mode (Anuja Verma) * Fix: Display the correct color for icons in forced colors mode (Anuja Verma) + * Fix: Remove outdated reference to 30-character limit on usernames in help text (minusf) 3.0.1 (16.06.2022) diff --git a/docs/releases/4.0.md b/docs/releases/4.0.md index 72ff307003..a42330f5d6 100644 --- a/docs/releases/4.0.md +++ b/docs/releases/4.0.md @@ -121,6 +121,7 @@ Wagtail’s page preview is now available in a side panel within the page editor * Make progress bars’ progress visible in forced colors mode (Anuja Verma) * Make checkboxes visible in forced colors mode (Anuja Verma) * Display the correct color for icons in forced colors mode (Anuja Verma) + * Remove outdated reference to 30-character limit on usernames in help text (minusf) ## Upgrade considerations diff --git a/wagtail/users/forms.py b/wagtail/users/forms.py index 22c6f1c01d..4c57a105c2 100644 --- a/wagtail/users/forms.py +++ b/wagtail/users/forms.py @@ -45,10 +45,7 @@ class UsernameForm(forms.ModelForm): if User.USERNAME_FIELD == "username": field = self.fields["username"] field.regex = r"^[\w.@+-]+$" - field.help_text = _( - "Required. 30 characters or fewer. Letters, " - "digits and @/./+/-/_ only." - ) + field.help_text = _("Required. Letters, digits and @/./+/-/_ only.") field.error_messages = field.error_messages.copy() field.error_messages.update( {