Commit 98889ee6 authored by Florian Fuchs's avatar Florian Fuchs

moderation: fixed typo in success message call

parent c37b840f
......@@ -26,6 +26,7 @@ along with Postorius. If not, see <http://www.gnu.org/licenses/>.
* dev setup fix for Django 1.4 contributed by Rohan Jain
* missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)
* moderation: fixed typo in success message call
1.0 alpha 1 -- "Space Farm"
......
......@@ -26,6 +26,7 @@ along with postorius. If not, see <http://www.gnu.org/licenses/>.
* dev setup fix for Django 1.4 contributed by Rohan Jain
* missing csrf tokens in templates contributed by Richard Wackerbarth (LP: 996658)
* moderation: fixed typo in success message call
1.0 alpha 1 -- "Space Farm"
......
......@@ -402,7 +402,7 @@ def accept_held_message(request, fqdn_listname, msg_id):
except HTTPError, e:
messages.error(request,e.msg)
return redirect('list_held_messages', the_list.fqdn_listname)
messages.successful(request, 'The message has been accepted.')
messages.success(request, 'The message has been accepted.')
return redirect('list_held_messages', the_list.fqdn_listname)
@user_passes_test(lambda u: u.is_superuser)
......@@ -417,7 +417,7 @@ def discard_held_message(request, fqdn_listname, msg_id):
except HTTPError, e:
messages.error(request,e.msg)
return redirect('list_held_messages', the_list.fqdn_listname)
messages.successful(request, 'The message has been discarded.')
messages.success(request, 'The message has been discarded.')
return redirect('list_held_messages', the_list.fqdn_listname)
@user_passes_test(lambda u: u.is_superuser)
......@@ -432,7 +432,7 @@ def defer_held_message(request, fqdn_listname, msg_id):
except HTTPError, e:
messages.error(request,e.msg)
return redirect('list_held_messages', the_list.fqdn_listname)
messages.successful(request, 'The message has been defered.')
messages.success(request, 'The message has been defered.')
return redirect('list_held_messages', the_list.fqdn_listname)
@user_passes_test(lambda u: u.is_superuser)
......@@ -447,7 +447,7 @@ def reject_held_message(request, fqdn_listname, msg_id):
except HTTPError, e:
messages.error(request,e.msg)
return redirect('list_held_messages', the_list.fqdn_listname)
messages.successful(request, 'The message has been rejected.')
messages.success(request, 'The message has been rejected.')
return redirect('list_held_messages', the_list.fqdn_listname)
@login_required
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment