horizon/openstack_dashboard/dashboards/project/firewalls
Akihiro Motoki a7ec524d4a Use BooleanField for admin_state_up form
admin_state_up is a boolean value but the network and port edit forms
expected a string version of True/False. As a result, True/False string
was shown as the default value in these forms. The field is implemented
as ChoiceField, but there is no special reason not to use BooleanField
for a boolean field and admin_state(_up) fields are the only exceptions
in horizon. This commit replaces all admin_state(_up) fields to
use BooleanField.

As far as I checked, this pattern is used only in the networking
related panels and this patch clean them up.

Conflicts:
	openstack_dashboard/dashboards/project/networks/ports/forms.py
	openstack_dashboard/dashboards/project/networks/workflows.py

Closes-Bug: #1672213
Change-Id: I9286f6c29d67fec7a88b74661bc8eca945fd9061
(cherry picked from commit c8cd03189a)
2017-05-18 21:58:09 +09:00
..
templates/firewalls Create common code for horizon.instances.js and horizon.firewalls.js 2016-11-07 18:56:06 +00:00
__init__.py FWaaS Horizon panel 2013-09-10 18:03:12 +09:00
forms.py Use BooleanField for admin_state_up form 2017-05-18 21:58:09 +09:00
panel.py Revert "Add policy rules to project panels" 2017-01-03 19:35:35 +00:00
tables.py Angular vs. Django Table Danger Button Inconsistency 2016-04-13 09:13:34 -07:00
tabs.py Add firewall detail actions and breadcrumb nav 2015-11-09 22:07:46 +00:00
tests.py Port last unit tests to Python 3 2016-02-10 18:22:52 +01:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
views.py Remove duplicated modal_header statements 2017-01-04 13:31:36 +00:00
workflows.py Use BooleanField for admin_state_up form 2017-05-18 21:58:09 +09:00