aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/notifications
diff options
context:
space:
mode:
authorAndrew Browning <ayleph@thisshitistemp.com>2016-04-01 21:14:40 -0400
committerAndrew Browning <ayleph@thisshitistemp.com>2016-04-02 19:59:01 -0400
commit5c7b2a6381290dec654a639a200e22ffd0eca9c3 (patch)
treebe7e09364d8c3c645a1a1950a337ef94b006ba30 /mediagoblin/notifications
parent6b6d14f48a0ea066d769a78d744f1a4fdbd5f269 (diff)
downloadmediagoblin-5c7b2a6381290dec654a639a200e22ffd0eca9c3.tar.lz
mediagoblin-5c7b2a6381290dec654a639a200e22ffd0eca9c3.tar.xz
mediagoblin-5c7b2a6381290dec654a639a200e22ffd0eca9c3.zip
Fix #5451 - add_message inconsistencies
Reformat add_message function calls for consistency and PEP8 line continuations.
Diffstat (limited to 'mediagoblin/notifications')
-rw-r--r--mediagoblin/notifications/views.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/mediagoblin/notifications/views.py b/mediagoblin/notifications/views.py
index 7298e964..30ecec77 100644
--- a/mediagoblin/notifications/views.py
+++ b/mediagoblin/notifications/views.py
@@ -30,10 +30,10 @@ def subscribe_comments(request, media):
add_comment_subscription(request.user, media)
- messages.add_message(request,
- messages.SUCCESS,
- _('Subscribed to comments on %s!')
- % media.title)
+ messages.add_message(
+ request,
+ messages.SUCCESS,
+ _('Subscribed to comments on %s!') % media.title)
return redirect(request, location=media.url_for_self(request.urlgen))
@@ -43,10 +43,11 @@ def subscribe_comments(request, media):
def silence_comments(request, media):
silence_comment_subscription(request.user, media)
- messages.add_message(request,
- messages.SUCCESS,
- _('You will not receive notifications for comments on'
- ' %s.') % media.title)
+ messages.add_message(
+ request,
+ messages.SUCCESS,
+ _('You will not receive notifications for comments on %s.') %
+ media.title)
return redirect(request, location=media.url_for_self(request.urlgen))