Fix: ugettext_lazy doesn't like string format
This commit is contained in:
parent
4914280868
commit
84dae63968
1 changed files with 5 additions and 7 deletions
|
@ -1431,13 +1431,11 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
else:
|
else:
|
||||||
sleep(2)
|
sleep(2)
|
||||||
if not response['status']:
|
if not response['status']:
|
||||||
response['text'] = _(
|
response['text'] = _("VM terminate action timed-out. Please "
|
||||||
("VM terminate action timed-out. Please contact support "
|
"contact support %(support_email)s for "
|
||||||
"{support_email}"
|
"further information.") % {
|
||||||
"for further information.").format(
|
'support_email': settings.DCL_SUPPORT_FROM_ADDRESS
|
||||||
support_email=settings.DCL_SUPPORT_FROM_ADDRESS
|
}
|
||||||
)
|
|
||||||
)
|
|
||||||
context = {
|
context = {
|
||||||
'vm_name': vm_name,
|
'vm_name': vm_name,
|
||||||
'base_url': "{0}://{1}".format(
|
'base_url': "{0}://{1}".format(
|
||||||
|
|
Loading…
Reference in a new issue