Permalink
Browse files

fix: context is not just a dict

git-svn-id: http://django-notification.googlecode.com/svn/trunk@73 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent 15c5f66 commit c8980b1ca4fc3e0284fc4bc7a7cfb31bdf3204e6 @hellp hellp committed Jul 8, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 notification/models.py
View
@@ -3,6 +3,7 @@
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
+from django.template import Context
from django.template.loader import render_to_string
from django.contrib.sites.models import Site
@@ -202,11 +203,11 @@ def send(recipient, label, extra_context={}, issue_notice=True):
reverse("notification_notices"),
)
- context = {
+ context = Context({
"notice": ugettext(notice_type.display),
"notices_url": notices_url,
"current_site": current_site,
- }
+ })
context.update(extra_context)
recipients = []

0 comments on commit c8980b1

Please sign in to comment.