mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
success message converted to translate ready
This commit is contained in:
parent
f7d2d24d0b
commit
5d4a600908
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ def create_instance(request, compute_id):
|
||||||
data['mac'])
|
data['mac'])
|
||||||
create_instance = Instance(compute_id=compute_id, name=data['name'], uuid=uuid)
|
create_instance = Instance(compute_id=compute_id, name=data['name'], uuid=uuid)
|
||||||
create_instance.save()
|
create_instance.save()
|
||||||
messages.success(request,"Instance is created.")
|
messages.success(request, _("Instance is created."))
|
||||||
return HttpResponseRedirect(reverse('instance', args=[compute_id, data['name']]))
|
return HttpResponseRedirect(reverse('instance', args=[compute_id, data['name']]))
|
||||||
except libvirtError as lib_err:
|
except libvirtError as lib_err:
|
||||||
if data['hdd_size'] or volumes[clone_path]:
|
if data['hdd_size'] or volumes[clone_path]:
|
||||||
|
|
Loading…
Reference in a new issue