diff options
author | Rosario Di Somma <rosario.disomma@dreamhost.com> | 2012-08-31 17:14:42 -0400 |
---|---|---|
committer | Rosario Di Somma <rosario.disomma@dreamhost.com> | 2012-08-31 17:28:04 -0400 |
commit | caf8eaffb9b078f06579a02211052ae591ba92ee (patch) | |
tree | 36f8fd527ed5e49332ca5cba9bf078b701b90c03 /horizon/dashboards/nova/containers/tables.py | |
parent | 856083a6d4e7ef29b2abdd807f78af9e9634aa67 (diff) | |
download | tuskar-ui-caf8eaffb9b078f06579a02211052ae591ba92ee.tar.gz |
Fix BatchAction class incongruence between documentation and code
Fixes launchpad bug #1044424
The BatchAction class in the tables package define the success_url variable in the docs but use completion_url in the code.
Change-Id: Ia93eeee4eccb4250d4b0984f38585175de738907
Diffstat (limited to 'horizon/dashboards/nova/containers/tables.py')
-rw-r--r-- | horizon/dashboards/nova/containers/tables.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/horizon/dashboards/nova/containers/tables.py b/horizon/dashboards/nova/containers/tables.py index 89609947..b767e12a 100644 --- a/horizon/dashboards/nova/containers/tables.py +++ b/horizon/dashboards/nova/containers/tables.py @@ -38,7 +38,7 @@ def wrap_delimiter(name): class DeleteContainer(tables.DeleteAction): data_type_singular = _("Container") data_type_plural = _("Containers") - completion_url = "horizon:nova:containers:index" + success_url = "horizon:nova:containers:index" def delete(self, request, obj_id): api.swift_delete_container(request, obj_id) @@ -52,7 +52,7 @@ class DeleteContainer(tables.DeleteAction): # If the current_container is deleted, then redirect to the default # completion url if current_container in self.success_ids: - return self.completion_url + return self.success_url return request.get_full_path() |