diff options
Diffstat (limited to 'forum/middleware/anon_user.py')
-rwxr-xr-x[-rw-r--r--] | forum/middleware/anon_user.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forum/middleware/anon_user.py b/forum/middleware/anon_user.py index e05e6f33..866734da 100644..100755 --- a/forum/middleware/anon_user.py +++ b/forum/middleware/anon_user.py @@ -3,6 +3,7 @@ from forum.utils.forms import get_next_url from django.utils.translation import ugettext as _ from forum.user_messages import create_message, get_and_delete_messages from django.conf import settings +from django.core.urlresolvers import reverse import logging class AnonymousMessageManager(object): @@ -30,5 +31,5 @@ class ConnectToSessionMessagesMiddleware(object): #also set the first greeting one time per session only if 'greeting_set' not in request.session: request.session['greeting_set'] = True - msg = _('first time greeting with %(url)s') % {'url':settings.GREETING_URL} + msg = _('First time here? Check out the <a href="%s">FAQ</a>!') % reverse('faq') request.user.message_set.create(message=msg) |