File tree Expand file tree Collapse file tree
openstack_dashboard/dashboards/project/snapshots Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313from django .urls import reverse
1414from django .urls import reverse_lazy
15- from django .utils .http import urlencode
1615from django .utils .translation import gettext_lazy as _
1716
1817from 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
127117class DetailView (tabs .TabView ):
128118 tab_group_class = vol_snapshot_tabs .SnapshotDetailTabs
You can’t perform that action at this time.
0 commit comments