mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
More instances tests
This commit is contained in:
parent
9e56378682
commit
0f66187e80
7 changed files with 769 additions and 390 deletions
|
@ -61,6 +61,4 @@ class NewVMForm(forms.Form):
|
|||
have_symbol = re.match('^[a-zA-Z0-9._-]+$', name)
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The name of the virtual machine must not contain any special characters'))
|
||||
elif len(name) > 64:
|
||||
raise forms.ValidationError(_('The name of the virtual machine must not exceed 20 characters'))
|
||||
return name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue