Merge "Modify the prompt of update network"

This commit is contained in:
Zuul 2018-12-12 08:23:37 +00:00 committed by Gerrit Code Review
commit b2bece7d2e
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,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: