From 47331ba08f290b39cc420d2cd6e30708cd29e43f Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 25 Jan 2021 16:36:24 +0300 Subject: [PATCH] fix python string variables for snapshot and video model --- instances/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instances/views.py b/instances/views.py index 5bccd37..6d4b33a 100644 --- a/instances/views.py +++ b/instances/views.py @@ -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")