Use POST/Redirect/GET for an instance resize form
This patch improves UX by blocking a second POST request during page
reload after "Confirm instance resize" action
Closes-Bug:
@@ -17,6 +17,7 @@ import logging
from django.conf import settings
from django.http import HttpResponse
+from django import shortcuts
from django import template
from django.template.defaultfilters import title
from django import urls
@@ -620,6 +621,7 @@ class ConfirmResize(policy.PolicyTargetMixin, tables.Action):
def single(self, table, request, instance):
api.nova.server_confirm_resize(request, instance)
+ return shortcuts.redirect(request.get_full_path())
class RevertResize(policy.PolicyTargetMixin, tables.Action):
