Skip to content

Commit

Permalink
Merge pull request #371 from abalakh/61z_def_name_abst_cr
Browse files Browse the repository at this point in the history
[6.1.z] [Cherry-pick] Provide default name length & type for ComputeResource entities (#369)
  • Loading branch information
rplevka committed Jan 30, 2017
2 parents 524980a + b0f3f81 commit 3c7f605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ def __init__(self, server_config=None, **kwargs):
'location': entity_fields.OneToManyField(Location),
'name': entity_fields.StringField(
required=True,
str_type=('alphanumeric', 'cjk'), # cannot contain whitespace
str_type='alphanumeric', # cannot contain whitespace
length=(6, 12),
),
'organization': entity_fields.OneToManyField(Organization),
'provider': entity_fields.StringField(
Expand Down

0 comments on commit 3c7f605

Please sign in to comment.