aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
authorPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-22 21:07:09 +0100
committerPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-22 21:07:09 +0100
commit56bfd91ab45c5160bcd65ebe15f44b08f880ed72 (patch)
tree95372cd42c4900eef853377a59fb2c9e4a7f9fc3 /mediagoblin/user_pages/views.py
parentd0ba62e2e773dbd3cc89bf6f446da45370652360 (diff)
downloadmediagoblin-56bfd91ab45c5160bcd65ebe15f44b08f880ed72.tar.lz
mediagoblin-56bfd91ab45c5160bcd65ebe15f44b08f880ed72.tar.xz
mediagoblin-56bfd91ab45c5160bcd65ebe15f44b08f880ed72.zip
Added a message noticing the user the image has been successfully
deleted.
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index 2ccb453b..b28b68e1 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -175,13 +175,14 @@ def media_confirm_delete(request, media):
delete_media_files(media)
media.delete()
+ messages.add_message(request, messages.SUCCESS, _('You deleted the media.'))
return redirect(request, "mediagoblin.user_pages.user_home",
user=username)
else:
messages.add_message(
request, messages.ERROR,
- _("The file was not deleted because you didn't check that you were sure."))
+ _("The media was not deleted because you didn't check that you were sure."))
return exc.HTTPFound(
location=media.url_for_self(request.urlgen))