Merge "Correct the admin snapshot detail row actions are inconsistent with the table"

This commit is contained in:
Jenkins 2017-07-03 20:40:46 +00:00 committed by Gerrit Code Review
commit 0ec208fcd8
1 changed files with 2 additions and 0 deletions

View File

@ -122,7 +122,9 @@ class DetailView(views.DetailView):
snapshot = self.get_data()
snapshot.volume_url = reverse(self.volume_url,
args=(snapshot.volume_id,))
table = vol_snapshot_tables.VolumeSnapshotsTable(self.request)
context["snapshot"] = snapshot
context["actions"] = table.render_row_actions(snapshot)
return context
@staticmethod