kopia lustrzana https://github.com/wagtail/wagtail
30 characters user names is an outdated requirement (#8848)
django does not have this limitation anymore.pull/8857/head^2
rodzic
ed239157fd
commit
c79f584371
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue