Show tab label in Admin CreateSubnet/UpdateSubnet form
It seems workflows.Action does not support inheritance of Django Meta class. Child classes must declare Meta class again. Otherwise, class name is shown as a tab label in a workflow from. Change-Id: I1bcfd2bde6238af339c2e4a4d84d6544d9c29e6b Closes-Bug: #1626336
This commit is contained in:
parent
48bc2bc6b3
commit
cfa9ce47e4
@ -32,6 +32,15 @@ LOG = logging.getLogger(__name__)
|
||||
class CreateSubnetInfoAction(project_workflows.CreateSubnetInfoAction):
|
||||
check_subnet_range = False
|
||||
|
||||
# NOTE(amotoki): As of Newton, workflows.Action does not support
|
||||
# an inheritance of django Meta class. It seems subclasses must
|
||||
# declare django meta class.
|
||||
class Meta(object):
|
||||
name = _("Subnet")
|
||||
help_text = _('Create a subnet associated with the network. '
|
||||
'Advanced configuration is available by clicking on the '
|
||||
'"Subnet Details" tab.')
|
||||
|
||||
|
||||
class CreateSubnetInfo(project_workflows.CreateSubnetInfo):
|
||||
action_class = CreateSubnetInfoAction
|
||||
@ -69,6 +78,15 @@ class CreateSubnet(project_workflows.CreateSubnet):
|
||||
class UpdateSubnetInfoAction(project_workflows.UpdateSubnetInfoAction):
|
||||
check_subnet_range = False
|
||||
|
||||
# NOTE(amotoki): As of Newton, workflows.Action does not support
|
||||
# an inheritance of django Meta class. It seems subclasses must
|
||||
# declare django meta class.
|
||||
class Meta(object):
|
||||
name = _("Subnet")
|
||||
help_text = _('Update a subnet associated with the network. '
|
||||
'Advanced configuration are available at '
|
||||
'"Subnet Details" tab.')
|
||||
|
||||
|
||||
class UpdateSubnetInfo(project_workflows.UpdateSubnetInfo):
|
||||
action_class = UpdateSubnetInfoAction
|
||||
|
Loading…
Reference in New Issue
Block a user