Modify the prompt of update network
The name is not required, so data["name"] may be empty, but the network.name_or_id must have a value Change-Id: I560e30f0081ea85e8f6e4b2db20c70630573741e Closes-Bug: #1815702
This commit is contained in:
parent
4242987e42
commit
ba4a84148b
|
@ -344,7 +344,8 @@ class UpdateNetwork(forms.SelfHandlingForm):
|
|||
network = api.neutron.network_update(request,
|
||||
self.initial['network_id'],
|
||||
**params)
|
||||
msg = _('Network %s was successfully updated.') % data['name']
|
||||
msg = (_('Network %s was successfully updated.') %
|
||||
network.name_or_id)
|
||||
messages.success(request, msg)
|
||||
return network
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue