From 80aeb8ebe2feaff649dca335cd989ee13da596bc Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Tue, 24 Oct 2023 18:59:02 +0200 Subject: [PATCH] max length 32 databaseuser --- orchestra/contrib/databases/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orchestra/contrib/databases/forms.py b/orchestra/contrib/databases/forms.py index f35f00c7..cba56642 100644 --- a/orchestra/contrib/databases/forms.py +++ b/orchestra/contrib/databases/forms.py @@ -58,12 +58,12 @@ class DatabaseForm(forms.ModelForm): class DatabaseCreationForm(DatabaseUserCreationForm): - username = forms.CharField(label=_("Username"), max_length=16, + username = forms.CharField(label=_("Username"), max_length=32, required=False, validators=[validators.validate_name], - help_text=_("Required. 16 characters or fewer. Letters, digits and " + help_text=_("Required. 32 characters or fewer. Letters, digits and " "@/./+/-/_ only."), error_messages={ - 'invalid': _("This value may contain 16 characters or fewer, only letters, numbers and " + 'invalid': _("This value may contain 32 characters or fewer, only letters, numbers and " "@/./+/-/_ characters.")}) user = forms.ModelChoiceField(required=False, queryset=DatabaseUser.objects)