changeset 441:33d0c55e57a9

Fixing the link to the private messages options tab in the PM notification email.
author Brian Neal <bgneal@gmail.com>
date Wed, 25 May 2011 02:39:08 +0000
parents ac9217eef610
children 6c182ceb7147
files gpp/messages/forms.py gpp/messages/urls.py gpp/messages/views.py
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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',
--- 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,