Skip to content

Commit

Permalink
Provide default name length & type for ComputeResource entities (Sate…
Browse files Browse the repository at this point in the history
  • Loading branch information
abalakh authored and Andrii Balakhtar committed Jan 30, 2017
1 parent 4c7adc3 commit 2f6c9cd
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 @@ -581,7 +581,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 2f6c9cd

Please sign in to comment.