mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
fix python string variables for snapshot and video model
This commit is contained in:
parent
77d8ad95d8
commit
47331ba08f
1 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ def revert_snapshot(request, pk):
|
|||
msg = _("Successful revert snapshot: ")
|
||||
msg += snap_name
|
||||
messages.success(request, msg)
|
||||
msg = _("Revert snapshot: %(snap)") % {"snap": snap_name}
|
||||
msg = _("Revert snapshot: %(snap)s") % {"snap": snap_name}
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
return redirect(request.META.get("HTTP_REFERER") + "#managesnapshot")
|
||||
|
||||
|
@ -887,7 +887,7 @@ def set_video_model(request, pk):
|
|||
instance = get_instance(request.user, pk)
|
||||
video_model = request.POST.get("video_model", "vga")
|
||||
instance.proxy.set_video_model(video_model)
|
||||
msg = _("Set Video Model: %(model)") % {"model": video_model}
|
||||
msg = _("Set Video Model: %(model)s") % {"model": video_model}
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
return redirect(request.META.get("HTTP_REFERER") + "#options")
|
||||
|
||||
|
|
Loading…
Reference in a new issue