From 5e9bfb66f939b17022b480c801bef62e94572423 Mon Sep 17 00:00:00 2001 From: Chris Van Date: Wed, 27 Mar 2013 23:28:14 -0700 Subject: [PATCH] show a nice success message after editing theme --- apps/devhub/views.py | 1 + mkt/submit/urls.py | 2 -- mkt/submit/views.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/devhub/views.py b/apps/devhub/views.py index 58dea08174..c124bbc1d5 100644 --- a/apps/devhub/views.py +++ b/apps/devhub/views.py @@ -323,6 +323,7 @@ def edit_theme(request, addon_id, addon, theme=False): request=request, instance=addon) if request.method == 'POST' and form.is_valid(): form.save() + messages.success(request, _('Changes successfully saved.')) return redirect('devhub.themes.edit', addon.reload().slug) return jingo.render(request, 'devhub/personas/edit.html', { 'addon': addon, diff --git a/mkt/submit/urls.py b/mkt/submit/urls.py index bbef4ead24..a1dd22d7d7 100644 --- a/mkt/submit/urls.py +++ b/mkt/submit/urls.py @@ -3,10 +3,8 @@ from django.shortcuts import redirect from lib.misc.urlconf_decorator import decorate -from addons.urls import ADDON_ID import amo from amo.decorators import write -from devhub import views as devhub_views from . import views diff --git a/mkt/submit/views.py b/mkt/submit/views.py index 2ce13bd023..93d7502fc7 100644 --- a/mkt/submit/views.py +++ b/mkt/submit/views.py @@ -5,7 +5,6 @@ from django.utils.translation.trans_real import to_language import commonware.log import jingo -from waffle.decorators import waffle_switch import amo from amo.decorators import login_required