Merge "Make it possible to pick False for default stack parameter value"

This commit is contained in:
Jenkins 2015-12-31 09:48:25 +00:00 committed by Gerrit Code Review
commit 000ab2ddad
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ class CreateStackForm(forms.SelfHandlingForm):
# (see https://bugs.launchpad.net/heat/+bug/1361448)
# so for better compatibility both are checked here
elif param_type in ('Boolean', 'boolean'):
field_args['required'] = False
field = forms.BooleanField(**field_args)
if field: