1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

replaced ugettext_lazy with gettext_lazy

This commit is contained in:
Real-Gecko 2020-10-14 18:27:57 +06:00
parent 5172a9f619
commit 1b3fd9d05e
23 changed files with 40 additions and 39 deletions

View file

@ -1,6 +1,6 @@
import re
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
class AddNetPool(forms.Form):

View file

@ -2,7 +2,7 @@ from django.contrib import messages
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from libvirt import libvirtError
from admin.decorators import superuser_only
@ -212,7 +212,7 @@ def network(request, compute_id, pool):
conn.set_qos(qos_dir, average, peak, burst)
if conn.is_active():
messages.success(
request,
request,
_(f"{qos_dir.capitalize()} QoS is set. Network XML is changed.") +
_("Stop and start network to activate new config"))
else:
@ -226,7 +226,7 @@ def network(request, compute_id, pool):
if conn.is_active():
messages.success(
request,
request,
_(f"{qos_dir.capitalize()} QoS is deleted. Network XML is changed. ") +
_("Stop and start network to activate new config."))
else: