

def __init__(self, request, *args, **kwargs):
    super(UpdateNATPoolForm, self).__init__(request, *args, **kwargs)
    nat_pool_id = args.initial['nat_pool_id']
    ec_list = client.externalconnectivity_list(request, tenant_id=request.user.tenant_id)
    external_segments_options = [(ec.id, ec.name) for ec in ec_list]
    self.fields['external_segment_id'].choices = external_segments_options
    nat_pool = client.get_natpool(request, nat_pool_id)
    attributes = ['name', 'description', 'ip_version', 'ip_pool', 'external_segment_id']
    for attr in attributes:
        self.fields[attr].initial = str(nat_pool[attr])
    self.fields['shared'].initial = nat_pool['shared']

dataset/ETHPy150Open openstack/group-based-policy-ui/gbpui/panels/network_policy/forms.py UpdateNATPoolForm.__init__/VarMisuse@38/49 `self`->`args`