Added a message noticing the user the image has been successfully
authorPablo J. Urbano Santos <flamma@member.fsf.org>
Tue, 22 Nov 2011 20:07:09 +0000 (21:07 +0100)
committerPablo J. Urbano Santos <flamma@member.fsf.org>
Tue, 22 Nov 2011 20:07:09 +0000 (21:07 +0100)
deleted.

mediagoblin/user_pages/views.py

index 2ccb453b9f90d66ba90ff3456cd7e4fb17a4001e..b28b68e14ae1b8d08d3816642a6a920c17f0f318 100644 (file)
@@ -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))