Correct the group name field less than or equal to 64 characters
If create or update group name longer than 64 characters, api will return 'Recoverable error: Group name should not be greater than 64 characters. (HTTP 400) (Request-ID: req-979dfe60-c461-4fdc-ab6c-61c62ed24ff3)'. Change-Id: I95a668c5bf24a58930e4d881417b8f732148bc93 Closes-Bug: #1684353
This commit is contained in:
parent
eed14eefb7
commit
000db66c68
@ -28,7 +28,8 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class CreateGroupForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(label=_("Name"))
|
||||
name = forms.CharField(label=_("Name"),
|
||||
max_length=64)
|
||||
description = forms.CharField(widget=forms.widgets.Textarea(
|
||||
attrs={'rows': 4}),
|
||||
label=_("Description"),
|
||||
@ -54,7 +55,8 @@ class CreateGroupForm(forms.SelfHandlingForm):
|
||||
|
||||
class UpdateGroupForm(forms.SelfHandlingForm):
|
||||
group_id = forms.CharField(widget=forms.HiddenInput())
|
||||
name = forms.CharField(label=_("Name"))
|
||||
name = forms.CharField(label=_("Name"),
|
||||
max_length=64)
|
||||
description = forms.CharField(widget=forms.widgets.Textarea(
|
||||
attrs={'rows': 4}),
|
||||
label=_("Description"),
|
||||
|
Loading…
Reference in New Issue
Block a user