From 977fc4c6d81a4c423982539f61f3eca138a77efd Mon Sep 17 00:00:00 2001 From: "zhu.rong" Date: Wed, 16 Sep 2015 21:24:10 +0800 Subject: [PATCH] Change package to category in DeleteCategory error message Now the delete category error message not suitable, And fix a typo Change-Id: I93e0c1b8b01dd63cdd93ec8fb3d50af6b3475abc --- muranodashboard/categories/tables.py | 2 +- muranodashboard/packages/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/muranodashboard/categories/tables.py b/muranodashboard/categories/tables.py index de59afd7e..00de7de80 100644 --- a/muranodashboard/categories/tables.py +++ b/muranodashboard/categories/tables.py @@ -49,7 +49,7 @@ class DeleteCategory(tables.DeleteAction): LOG.exception(_('Unable to delete category')) url = reverse('horizon:murano:categories:index') exceptions.handle(request, - _('Unable to remove package.'), + _('Unable to delete category.'), redirect=url) diff --git a/muranodashboard/packages/views.py b/muranodashboard/packages/views.py index b1489bd56..257f81e45 100644 --- a/muranodashboard/packages/views.py +++ b/muranodashboard/packages/views.py @@ -58,7 +58,7 @@ def is_app(wizard): """Check if we're uploading an application Return true if uploading package is an application. - In that case, category selection from need to be shown. + In that case, category selection form need to be shown. """ step_data = wizard.storage.get_step_data('upload') if step_data: