Skip to content

Commit

Permalink
success messages on /versions/:id and /profile (bug 620870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Dec 28, 2010
1 parent ece64f4 commit 9eef9c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/devhub/views.py
Expand Up @@ -436,6 +436,7 @@ def profile(request, addon_id, addon):
if request.method == 'POST' and profile_form.is_valid():
profile_form.save()
amo.log(amo.LOG.EDIT_PROPERTIES, addon)
messages.success(request, _('Changes successfully saved.'))
return redirect('devhub.addons.profile', addon.slug)

return jingo.render(request, 'devhub/addons/profile.html',
Expand Down Expand Up @@ -575,6 +576,7 @@ def version_edit(request, addon_id, addon, version_id):
for compat in data['compat_form'].save(commit=False):
compat.version = version
compat.save()
messages.success(request, _('Changes successfully saved.'))
return redirect('devhub.versions.edit', addon.slug, version_id)

data.update(addon=addon, version=version, new_file_form=new_file_form)
Expand Down

0 comments on commit 9eef9c1

Please sign in to comment.