Permalink
Browse files

Pass the context in get_formatted_messages into the correct argument …

…in render_to_string.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@101 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
brosner committed Sep 28, 2008
1 parent 2071a9f commit 2a6386e701d31334d6cdd8d4a0d2fe8847b4cd9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 notification/models.py
View
@@ -219,7 +219,7 @@ def get_formatted_messages(formats, label, context):
name = format.split(".")[0]
format_templates[name] = render_to_string((
'notification/%s/%s' % (label, format),
- 'notification/%s' % format), context)
+ 'notification/%s' % format), context_instance=context)
return format_templates
def send(users, label, extra_context={}, on_site=True):

0 comments on commit 2a6386e

Please sign in to comment.