# HG changeset patch # User Brian Neal # Date 1306291148 0 # Node ID 33d0c55e57a940b6b82d03f5f417d2b36c307d9b # Parent ac9217eef6104c4a605372d123e495017dcda2f3 Fixing the link to the private messages options tab in the PM notification email. diff -r ac9217eef610 -r 33d0c55e57a9 gpp/messages/forms.py --- a/gpp/messages/forms.py Sat May 21 20:35:02 2011 +0000 +++ b/gpp/messages/forms.py Wed May 25 02:39:08 2011 +0000 @@ -116,7 +116,7 @@ email_body = render_to_string('messages/notification_email.txt', { 'site': site, 'msg': new_msg, - 'options_url': reverse('messages-options'), + 'options_url': reverse('messages-options_tab'), }) subject = 'New private message for %s at %s' % (new_msg.receiver.username, site.name) diff -r ac9217eef610 -r 33d0c55e57a9 gpp/messages/urls.py --- a/gpp/messages/urls.py Sat May 21 20:35:02 2011 +0000 +++ b/gpp/messages/urls.py Wed May 25 02:39:08 2011 +0000 @@ -8,8 +8,12 @@ url(r'^(inbox|compose|outbox|trash|options)/$', 'index', name='messages-index_named'), - url(r'^compose/([\w.@+-]{1,30})/$', - 'compose_to', + url(r'^options/$', + 'index', + kwargs={'tab': 'options'}, + name='messages-options_tab'), + url(r'^compose/([\w.@+-]{1,30})/$', + 'compose_to', name='messages-compose_to'), url(r'^inbox-tab/$', 'inbox', diff -r ac9217eef610 -r 33d0c55e57a9 gpp/messages/views.py --- a/gpp/messages/views.py Sat May 21 20:35:02 2011 +0000 +++ b/gpp/messages/views.py Wed May 25 02:39:08 2011 +0000 @@ -47,7 +47,7 @@ """ Checks the message box count against MSG_BOX_LIMIT. Emits a message to the user if the quota is exceeded. - + """ if count >= MSG_BOX_LIMIT: django_messages.warning(request,