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)'.
Closes-Bug:
@@ -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"),
