Skip to content

Commit c36cb5b

Browse files
authored
Merge pull request #28 from stackhpc/upstream/yoga-2023-08-07
Synchronise yoga with upstream
2 parents dfd73f5 + eb57aa5 commit c36cb5b

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

  • openstack_dashboard/dashboards/project/snapshots

openstack_dashboard/dashboards/project/snapshots/views.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from django.urls import reverse
1414
from django.urls import reverse_lazy
15-
from django.utils.http import urlencode
1615
from django.utils.translation import gettext_lazy as _
1716

1817
from horizon import exceptions
@@ -104,11 +103,8 @@ def get_object(self):
104103
def get_context_data(self, **kwargs):
105104
context = super().get_context_data(**kwargs)
106105
context['snapshot'] = self.get_object()
107-
success_url = self.request.GET.get('success_url', "")
108106
args = (self.kwargs['snapshot_id'],)
109-
params = urlencode({"success_url": success_url})
110-
context['submit_url'] = "?".join([reverse(self.submit_url, args=args),
111-
params])
107+
context['submit_url'] = reverse(self.submit_url, args=args)
112108
return context
113109

114110
def get_initial(self):
@@ -117,12 +113,6 @@ def get_initial(self):
117113
'name': snapshot.name,
118114
'description': snapshot.description}
119115

120-
def get_success_url(self):
121-
success_url = self.request.GET.get(
122-
"success_url",
123-
reverse_lazy("horizon:project:snapshots:index"))
124-
return success_url
125-
126116

127117
class DetailView(tabs.TabView):
128118
tab_group_class = vol_snapshot_tabs.SnapshotDetailTabs

0 commit comments

Comments
 (0)