[bgpvpn_dashboard] Fix bug when a network or router name doesn't exist
In the popup Update Networks Association the field network can be empty when a network has no name. Same thing for the routers. The fix displays the id when name doesn't exist. Change-Id: I71d4bf3f74997a1d0bf1e84e93d88ac5c22678fc Closes-Bug:1742948
This commit is contained in:
1 changed files with 1 additions and 1 deletions
@@ -47,7 +47,7 @@ class UpdateAssociations(workflows.MembershipAction):
all_resources = self._get_resources(request, context, resource_type,
err_msg)
resources_list = [(resource.id, resource.name)
resources_list = [(resource.id, resource.name_or_id)
for resource in all_resources]
self.fields[field_name].choices = resources_list
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.