mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
bootstrap 4.5 fixations & Update strings style to f-string
This commit is contained in:
parent
ccd947a04c
commit
7c93ee1e2f
12 changed files with 60 additions and 61 deletions
|
@ -56,7 +56,7 @@ def nwfilters(request, compute_id):
|
|||
|
||||
if 'del_nwfilter' in request.POST:
|
||||
name = request.POST.get('nwfiltername', '')
|
||||
msg = _("Deleting NWFilter: %s" % name)
|
||||
msg = _(f"Deleting NWFilter: {name}")
|
||||
in_use = False
|
||||
nwfilter = conn.get_nwfilter(name)
|
||||
|
||||
|
@ -68,7 +68,7 @@ def nwfilters(request, compute_id):
|
|||
|
||||
if name in dom_filterrefs:
|
||||
in_use = True
|
||||
msg = _("NWFilter is in use by %s. Cannot be deleted." % inst)
|
||||
msg = _(f"NWFilter is in use by {inst}. Cannot be deleted.")
|
||||
error_messages.append(msg)
|
||||
addlogmsg(request.user.username, compute.hostname, msg)
|
||||
i_conn.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue