Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Horizon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
resplat-cloud
Horizon
Commits
07343c85
Commit
07343c85
authored
2 years ago
by
Zuul
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix success_url parameter issue for Edit Snapshot" into stable/xena
parents
cb95e464
2f600272
Branches
Branches containing commit
Tags
20.1.4
xena-em
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
openstack_dashboard/dashboards/project/snapshots/views.py
+1
-11
1 addition, 11 deletions
openstack_dashboard/dashboards/project/snapshots/views.py
with
1 addition
and
11 deletions
openstack_dashboard/dashboards/project/snapshots/views.py
+
1
−
11
View file @
07343c85
...
...
@@ -12,7 +12,6 @@
from
django.urls
import
reverse
from
django.urls
import
reverse_lazy
from
django.utils.http
import
urlencode
from
django.utils.translation
import
ugettext_lazy
as
_
from
horizon
import
exceptions
...
...
@@ -104,11 +103,8 @@ class UpdateView(forms.ModalFormView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
().
get_context_data
(
**
kwargs
)
context
[
'
snapshot
'
]
=
self
.
get_object
()
success_url
=
self
.
request
.
GET
.
get
(
'
success_url
'
,
""
)
args
=
(
self
.
kwargs
[
'
snapshot_id
'
],)
params
=
urlencode
({
"
success_url
"
:
success_url
})
context
[
'
submit_url
'
]
=
"
?
"
.
join
([
reverse
(
self
.
submit_url
,
args
=
args
),
params
])
context
[
'
submit_url
'
]
=
reverse
(
self
.
submit_url
,
args
=
args
)
return
context
def
get_initial
(
self
):
...
...
@@ -117,12 +113,6 @@ class UpdateView(forms.ModalFormView):
'
name
'
:
snapshot
.
name
,
'
description
'
:
snapshot
.
description
}
def
get_success_url
(
self
):
success_url
=
self
.
request
.
GET
.
get
(
"
success_url
"
,
reverse_lazy
(
"
horizon:project:snapshots:index
"
))
return
success_url
class
DetailView
(
tabs
.
TabView
):
tab_group_class
=
vol_snapshot_tabs
.
SnapshotDetailTabs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment